[Bug c++/47184] [C++0x] initialization construct interpreted as function declaration
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 25 20:30:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47184
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 20:29:42 UTC ---
Author: jason
Date: Wed May 25 20:29:39 2011
New Revision: 174232
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174232
Log:
PR c++/47184
* parser.c (cp_parser_parameter_declaration): Recognize
list-initialization.
(cp_parser_direct_declarator): Check for the closing
paren before parsing definitely.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/initlist51.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/parser.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list