diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2015-04-30 09:04:04 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-04-30 09:04:04 +0000 |
commit | c064f154a65870a48131f699312d312b7ae1cc81 (patch) | |
tree | 450482611448c6121cd80236c9b19f1825713959 /gcc | |
parent | 2f132d1d2c39d65bf03dc0234977366f13dc38f7 (diff) | |
download | gcc-c064f154a65870a48131f699312d312b7ae1cc81.zip gcc-c064f154a65870a48131f699312d312b7ae1cc81.tar.gz gcc-c064f154a65870a48131f699312d312b7ae1cc81.tar.bz2 |
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 <paolo.carlini@oracle.com>
PR c++/59955
* g++.dg/template/crash121.C: New.
From-SVN: r222612
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash121.C | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7aebfec..4c41b24 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..b7291df --- /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" } +}; |