re PR c++/51911 ([C++11] G++ accepts new auto { list })
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 14 Sep 2015 15:25:00 +0000 (15:25 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 14 Sep 2015 15:25:00 +0000 (15:25 +0000)
commit5a0f3af487a4a9d1cd763e91f4221388d7bfed89
tree69e5aa6ae826f63b0db2ae3e060b5297610042ce
parentf6ba5bb293414a4114a8147b3e7fd38169aacccd
re PR c++/51911 ([C++11] G++ accepts new auto { list })

/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.

From-SVN: r227753
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/new-auto1.C [new file with mode: 0644]