* template1.C: New test.

From-SVN: r27885
This commit is contained in:
Alexandre Oliva 1999-07-01 15:47:34 +00:00 committed by Alexandre Oliva
parent 4cf6f930ea
commit e6d335d27e
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1999-07-01 Alexandre Oliva <oliva@dcc.unicamp.br>
* template1.C: New test.

View 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
}