/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
+2015-06-16 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/59682
+ * parser.c (cp_parser_new_placement): Reject an empty expression-list.
+
2015-06-16 Jason Merrill <jason@redhat.com>
PR c++/66536
/*allow_expansion_p=*/true,
/*non_constant_p=*/NULL));
+ if (expression_list && expression_list->is_empty ())
+ error ("expected expression-list or type-id");
+
return expression_list;
}
+2015-06-16 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/59682
+ * g++.dg/parse/new-placement1.C: New.
+
2015-06-16 David Malcolm <dmalcolm@redhat.com>
* jit.dg/all-non-failing-tests.h: Add test-compound-assignment.c.
--- /dev/null
+// PR c++/59682
+
+int* p = new() int; // { dg-error "expected expression-list or type-id" }