re PR c++/63306 (ICE: Segmentation fault in analyze_functions())
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Oct 2014 20:42:23 +0000 (22:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Oct 2014 20:42:23 +0000 (22:42 +0200)
PR c++/63306
* g++.dg/ipa/pr63306.C: New test.

From-SVN: r215779

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

index 213d2763e2711690698a2932d8d18e218fb16d68..8f02f56b730778a1e62615711026c1d85565d349 100644 (file)
@@ -1,5 +1,8 @@
 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
 
+       PR c++/63306
+       * g++.dg/ipa/pr63306.C: New test.
+
        PR target/63428
        * gcc.dg/torture/vshuf-4.inc: Move test 122 from EXPTESTS
        to test 24 in TESTS.
diff --git a/gcc/testsuite/g++.dg/ipa/pr63306.C b/gcc/testsuite/g++.dg/ipa/pr63306.C
new file mode 100644 (file)
index 0000000..e22a4c2
--- /dev/null
@@ -0,0 +1,14 @@
+// PR c++/63306
+// { dg-do compile { target c++11 } }
+
+template <typename...>
+class A;
+
+class B
+{
+  B (const int &, const A<int, int> &);
+};
+
+B::B (const int &, const A<int, int> &)
+{
+}