re PR c++/79626 (ICE on invalid code in build_temp (call.c:6489))
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 12 Feb 2018 11:16:33 +0000 (11:16 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 12 Feb 2018 11:16:33 +0000 (11:16 +0000)
2018-02-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/79626
* g++.dg/template/crash129.C: New.

From-SVN: r257583

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

index a0bd3b22e4ef8c13b48bf8007a70a05b1138b438..d11609de5ef256089b25ef9d16ddee5ff2fe0acc 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-12  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/79626
+       * g++.dg/template/crash129.C: New.
+
 2018-02-12  Olga Makhotina  <olga.makhotina@intel.com>
 
        PR target/83828
diff --git a/gcc/testsuite/g++.dg/template/crash129.C b/gcc/testsuite/g++.dg/template/crash129.C
new file mode 100644 (file)
index 0000000..9f56b80
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/79626
+
+template <class a, class> struct b
+{ b(); b(b &); b(b< a, a >); };  // { dg-error "invalid constructor" }
+int c(b< int, int >(b< int, int >());  // { dg-error "" }