re PR c++/20463 (ICE on using undefined type)

2005-03-18  Paolo Carlini  <pcarlini@suse.de>

	PR c++/20463
	* g++.dg/template/crash35.C: New test.

From-SVN: r96690
This commit is contained in:
Paolo Carlini 2005-03-18 17:19:42 +00:00 committed by Paolo Carlini
parent 32db39c035
commit 0a1948ed7b
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-03-18 Paolo Carlini <pcarlini@suse.de>
PR c++/20463
* g++.dg/template/crash35.C: New test.
2005-03-17 Paolo Carlini <pcarlini@suse.de>
PR c++/19966

View File

@ -0,0 +1,9 @@
// PR c++/20463
// { dg-do compile }
template <typename T> struct C; // { dg-error "declaration" }
template <typename T> void C<T>::f() // { dg-error "invalid|template" }
{
const foo bar; // { dg-error "name a type" }
}