Commit 0a1948ed by Paolo Carlini Committed by Paolo Carlini

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
parent 32db39c0
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
......
// 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" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment