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:
parent
32db39c035
commit
0a1948ed7b
@ -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
|
||||
|
9
gcc/testsuite/g++.dg/template/crash35.C
Normal file
9
gcc/testsuite/g++.dg/template/crash35.C
Normal 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" }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user