re PR c++/67544 (ICE: SIGSEGV in tree_check3 (tree.h:2896) with -fconcepts)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 27 Sep 2018 09:53:08 +0000 (09:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 27 Sep 2018 09:53:08 +0000 (09:53 +0000)
2018-09-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67544
* g++.dg/concepts/pr67544.C: New.

From-SVN: r264665

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

index 4bca408202237f919e540acd0abe2e4ce54256fc..d723ef42ee47aeb08cdfff5d21d094a3ed8aa445 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-27  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/67544
+       * g++.dg/concepts/pr67544.C: New.
+
 2018-09-27  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/84940
diff --git a/gcc/testsuite/g++.dg/concepts/pr67544.C b/gcc/testsuite/g++.dg/concepts/pr67544.C
new file mode 100644 (file)
index 0000000..af4f677
--- /dev/null
@@ -0,0 +1,11 @@
+// { dg-additional-options "-fconcepts" }
+
+template <typename T> struct A
+{
+  struct B;
+};
+
+struct C
+{
+  template<typename T> friend struct A<T>::B;
+};