* template1.C: New test.
From-SVN: r27885
This commit is contained in:
parent
4cf6f930ea
commit
e6d335d27e
4
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
Normal file
4
gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
Normal file
@ -0,0 +1,4 @@
|
||||
1999-07-01 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* template1.C: New test.
|
||||
|
14
gcc/testsuite/g++.old-deja/g++.oliva/template1.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.oliva/template1.C
Normal file
@ -0,0 +1,14 @@
|
||||
// Build don't link:
|
||||
|
||||
// by Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
// based on bug report by Stefan Wetzel <Stefan_Wetzel@Physik.TU-Muenchen.DE>
|
||||
|
||||
// crash test - XFAIL *-*-*
|
||||
|
||||
template<int P = 0> struct foo {
|
||||
static void bar(double (*)[dim]) {} // ERROR - dim not declared
|
||||
};
|
||||
|
||||
void bar() {
|
||||
foo<>::bar(0); // ERROR - instantiated from here
|
||||
}
|
Loading…
Reference in New Issue
Block a user