From: Paolo Carlini Date: Thu, 30 Apr 2015 09:04:04 +0000 (+0000) Subject: re PR c++/59955 (Segmentation fault on (re?)defining a struct template as function... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c064f154a65870a48131f699312d312b7ae1cc81;p=gcc.git re PR c++/59955 (Segmentation fault on (re?)defining a struct template as function template, when inside a struct tempate) 2015-04-30 Paolo Carlini PR c++/59955 * g++.dg/template/crash121.C: New. From-SVN: r222612 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7aebfecff77..4c41b242417 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-04-30 Paolo Carlini + + PR c++/59955 + * g++.dg/template/crash121.C: New. + 2015-04-29 Petar Jovanovic * 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 index 00000000000..b7291df7edc --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash121.C @@ -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" } +};