From: Paolo Carlini Date: Fri, 19 Dec 2014 16:50:31 +0000 (+0000) Subject: re PR c++/60493 (g++ throws segmentation fault on simple code) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc2770b996c502dfa71980b7f3a4e2b0cf688275;p=gcc.git re PR c++/60493 (g++ throws segmentation fault on simple code) 2014-12-19 Paolo Carlini PR c++/60493 * g++.dg/template/crash120.C: New. From-SVN: r218957 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9c46504032a..39f8ad2358b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-19 Paolo Carlini + + PR c++/60493 + * g++.dg/template/crash120.C: New. + 2014-12-19 Kai Tietz PR c++/61198 diff --git a/gcc/testsuite/g++.dg/template/crash120.C b/gcc/testsuite/g++.dg/template/crash120.C new file mode 100644 index 00000000000..9d15c2e6604 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash120.C @@ -0,0 +1,18 @@ +// PR c++/60493 + +template +struct foo +{ +}; +template +struct baz +{ + class bar; +}; + +template +struct baz::bar : foo // { dg-error "parameters|required" } +{ +}; + +baz::bar it; // { dg-error "incomplete" }