Re: sizeof
Russell Shaw <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
>Andreas Schwab wrote: >On Mai 09 2022, Russell Shaw wrote: > >> sizeof(int()) should transform to sizeof(int (*)()) according to the C++20 >> standard. > >No, see [expr.sizeof] #3. What does "[expr.sizeof] #3" refer to ? unary-expression : ... sizeof ( type-id ) type-id : type-specifier-seq abstract-declarator(opt) No expressions here.