mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-31 20:30:14 +08:00
added crash test
From-SVN: r23915
This commit is contained in:
parent
fb63a8701e
commit
ea84ebc2bc
@ -1,9 +1,11 @@
|
||||
// Build don't link:
|
||||
// Simplified from bug report by Paris Smaragdis <paris@media.mit.edu>
|
||||
|
||||
// crash test - XFAIL *-*-*
|
||||
|
||||
template <class T> class vector {};
|
||||
class foo {};
|
||||
int main() {
|
||||
foo f;
|
||||
f.vector(); // gets bogus error - ICE - XFAIL *-*-*
|
||||
f.vector(); // ERROR - not a method
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
// Build don't link:
|
||||
// Simplified from report by Volker Dobler <volker@hugo.physik.uni-konstanz.de>
|
||||
|
||||
// crash test - XFAIL *-*-*
|
||||
|
||||
template <class T> class A {
|
||||
friend int ice<>( int k=0 ); // gets bogus error - ICE - XFAIL *-*-*
|
||||
friend int ice<>( int k=0 ); // ERROR - undeclared
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user