2015-04-30 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Apr 2015 09:04:04 +0000 (09:04 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Apr 2015 09:04:04 +0000 (09:04 +0000)
PR c++/59955
* g++.dg/template/crash121.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222612 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 7aebfec..4c41b24 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-30  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/59955
+       * g++.dg/template/crash121.C: New.
+
 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
 
        * gcc.target/mips/call-from-init.c: New test.
diff --git a/gcc/testsuite/g++.dg/template/crash121.C b/gcc/testsuite/g++.dg/template/crash121.C
new file mode 100644 (file)
index 0000000..b7291df
--- /dev/null
@@ -0,0 +1,11 @@
+// PR c++/59955
+
+template< int xyz >
+struct wovo {
+
+   template< int n >
+   void us(){}
+   
+   template< int n >
+   struct us< n > {};  // { dg-error "template|conflicts" }
+};