/cp
2018-10-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84705
* init.c (build_cplus_new): Avoid duplicate diagnostic about
incomplete type, early return error_mark_node if the second
argument is error_mark_node.
/testsuite
2018-10-17 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84705
* g++.dg/cpp0x/pr84705.C: New.
From-SVN: r265233
+2018-10-17 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84705
+ * init.c (build_cplus_new): Avoid duplicate diagnostic about
+ incomplete type, early return error_mark_node if the second
+ argument is error_mark_node.
+
2018-10-12 Nathan Sidwell <nathan@acm.org>
* parser.h (struct cp_parser): Drop implicit_extern_c.
+2018-10-17 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/84705
+ * g++.dg/cpp0x/pr84705.C: New.
+
2018-10-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/56386
--- /dev/null
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
+
+int a[]{a}; // { dg-error "invalid conversion" }
+
+template<int>
+struct b {
+ __attribute__((c([] {
+ struct {
+ int a = static_cast<struct d>(a); // { dg-error "invalid use of incomplete type" }
+ } e;
+ })));
+};