aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2016-12-14 16:45:33 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2016-12-14 16:45:33 +0000
commitb4ba0852099ad28a533327ac25e8337910be28e8 (patch)
tree33690cc2fdd2e6f27ab0b5200494c040f9c94c94 /gcc/testsuite
parentfa0c02c38c52a425c39084f364bb645becb8b7bb (diff)
downloadgcc-b4ba0852099ad28a533327ac25e8337910be28e8.zip
gcc-b4ba0852099ad28a533327ac25e8337910be28e8.tar.gz
gcc-b4ba0852099ad28a533327ac25e8337910be28e8.tar.bz2
re PR c++/78701 (ICE: unexpected expression N of kind template_parm_index)
PR c++/78701 * pt.c (type_unification_real): Check tsubst arg doesn't have remaining template parms before converting it. PR c++/78701 * g++.dg/cpp0x/pr78701.C: New. From-SVN: r243657
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr78701.C9
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9f7fa7e..47a98ac 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-14 Nathan Sidwell <nathan@acm.org>
+
+ PR c++/78701
+ * g++.dg/cpp0x/pr78701.C: New.
+
2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc/testsuite/gcc.target/powerpc/vec-extract.h: If DO_TRACE is
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr78701.C b/gcc/testsuite/g++.dg/cpp0x/pr78701.C
new file mode 100644
index 0000000..6fef926
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr78701.C
@@ -0,0 +1,9 @@
+// PR c++/58707
+// { dg-do compile { target c++11 } }
+
+// ICE during deduction of default parms
+
+template <class T, T N = T(), bool B = N>
+ void f(T x) {}
+
+template void f<int> (int);