Re: sizeof

Russell Shaw
2022-05-10T03:46:54Z

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