This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51911] [C++11] G++ accepts new auto { list }
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Sep 2015 15:25:32 +0000
- Subject: [Bug c++/51911] [C++11] G++ accepts new auto { list }
- Auto-submitted: auto-generated
- References: <bug-51911-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51911
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Mon Sep 14 15:25:00 2015
New Revision: 227753
URL: https://gcc.gnu.org/viewcvs?rev=227753&root=gcc&view=rev
Log:
/cp
2015-09-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51911
* parser.c (cp_parser_new_expression): Enforce 5.3.4/2 (as amended
per the spirit of DR 1467).
/testsuite
2015-09-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51911
* g++.dg/cpp0x/new-auto1.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/new-auto1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog