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]

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


Ping ?

http://gcc.gnu.org/ml/gcc-patches/2012-04/txt00094.txt

Adding Gabriel in Cc: in case this falls in the diagnostic category.

On Fri, 20 Apr 2012, Marc Glisse wrote:

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


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