[Bug c++/51314] sizeof... and parentheses

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Sat Nov 26 18:27:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51314

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-11-26 16:02:58 UTC ---
(In reply to comment #0)
> I was going to report the case where it doesn't as a bug, but after a look at
> the standard, it looks like it should always require the parentheses.

I agree, the grammar supports only 

sizeof...(/identifier/)

so both examples should be rejected.



More information about the Gcc-bugs mailing list