sizeof

Russell Shaw rjshaw@netspace.net.au
Tue May 10 03:46:06 GMT 2022


 >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.


More information about the Gdb mailing list