re PR c++/59682 (Invalid syntax accepted: new-placement without expression-list)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 16 Jun 2015 20:07:57 +0000 (20:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 16 Jun 2015 20:07:57 +0000 (20:07 +0000)
commitba394ca69b1444dd743bcea7c5c0825837cc108e
treeaa62bb66ef8197611ba2cf33071c36388be21895
parentcd9ed559fb0537f41266eda74fb8085e3a892de6
re PR c++/59682 (Invalid syntax accepted: new-placement without expression-list)

/cp
2015-06-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59682
* parser.c (cp_parser_new_placement): Reject an empty expression-list.

/testsuite
2015-06-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59682
* g++.dg/parse/new-placement1.C: New.

From-SVN: r224537
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/new-placement1.C [new file with mode: 0644]