re PR c++/84676 (internal compiler error: Segmentation fault (build_new_op_1))
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 22 Feb 2019 23:16:14 +0000 (23:16 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 22 Feb 2019 23:16:14 +0000 (23:16 +0000)
2019-02-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84676
* g++.dg/cpp0x/pr84676.C: New.

From-SVN: r269138

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr84676.C [new file with mode: 0644]

index 8d19215db76fa711fd931099ef6f03785492cc28..4d3d307d4a6200714fc7a84c2dd16bf422dc9a97 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-22  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/84676
+       * g++.dg/cpp0x/pr84676.C: New.
+
 2019-02-22  Martin Sebor  <msebor@redhat.com>
 
        * gcc.dg/tree-ssa/builtin-sprintf-10.c: Cast wchar_t to wint_t
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr84676.C b/gcc/testsuite/g++.dg/cpp0x/pr84676.C
new file mode 100644 (file)
index 0000000..94d8671
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-do compile { target c++11 } }
+
+int a;
+void b(__attribute__((c([](int *) {} (a == (0 = auto))))));  // { dg-error "" }