re PR c++/59955 (Segmentation fault on (re?)defining a struct template as function...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 30 Apr 2015 09:04:04 +0000 (09:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 30 Apr 2015 09:04:04 +0000 (09:04 +0000)
2015-04-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59955
* g++.dg/template/crash121.C: New.

From-SVN: r222612

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

index 7aebfecff77151b0c1a15ddd90891b38236e5fd9..4c41b242417674dcad7158aaeb666a9ef408e7cd 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" }
+};