Hello,
here is a patch that requires parentheses around the argument of sizeof.... I
am not sure what variadic76.C tests, so I put 2 lines, with parentheses in
different places.
bootstrapped and regression tested (make -k check, compared to an unpatched
version).
Note that I can't commit.
gcc/cp/ChangeLog
2012-04-20 Marc Glisse <marc.glisse@inria.fr>
PR c++/51314
* parser.c (cp_parser_sizeof_operand): Require parentheses for
sizeof...
gcc/testsuite/ChangeLog
2012-04-20 Marc Glisse <marc.glisse@inria.fr>
PR c++/51314
* g++.dg/cpp0x/vt-51314.C: New test.
* g++.dg/cpp0x/variadic76.C: Fix.