re PR c++/84606 (internal compiler error: Segmentation fault (enclosing_instantiation...
authorPaolo Carlini <paolo@gcc.gnu.org>
Thu, 29 Mar 2018 08:43:43 +0000 (08:43 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 29 Mar 2018 08:43:43 +0000 (08:43 +0000)
2018-03-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84606
* g++.dg/cpp0x/pr84606.C: New.

From-SVN: r258947

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

index cb5c2c3773354af0890d796f6399e4d977183404..c5ee0187599f81ac5e497d55f18ab2800eb31760 100644 (file)
@@ -1,4 +1,9 @@
-2018-03-20  Carl Love  <cel@us.ibm.com>
+2018-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/84606
+       * g++.dg/cpp0x/pr84606.C: New.
+
+2018-03-29  Carl Love  <cel@us.ibm.com>
 
        Revert
        2017-09-27  Carl Love  <cel@us.ibm.com>
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr84606.C b/gcc/testsuite/g++.dg/cpp0x/pr84606.C
new file mode 100644 (file)
index 0000000..60d4af5
--- /dev/null
@@ -0,0 +1,10 @@
+// { dg-do compile { target c++11 } }
+
+template<typename>
+struct s {
+  struct {
+    void __attribute__((common([] { struct d }))) g();  // { dg-error "expected|attribute" }
+  } f;
+};
+
+s<int> a {};