This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50563] [C++0x] Weird syntax acceptance rules for non-static data members initialized in place
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Oct 2011 19:13:05 +0000
- Subject: [Bug c++/50563] [C++0x] Weird syntax acceptance rules for non-static data members initialized in place
- Auto-submitted: auto-generated
- References: <bug-50563-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50563
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-14 19:13:05 UTC ---
Author: jason
Date: Fri Oct 14 19:12:57 2011
New Revision: 180003
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180003
Log:
PR c++/50563
* parser.c (cp_parser_cache_group): Handle end==CPP_COMMA.
(cp_parser_save_nsdmi): Pass it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-list1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog