This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++ Patch] sizeof... and parentheses


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.

--
Marc Glisse

Attachment: pp
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]