Commit e6d335d2 by Alexandre Oliva Committed by Alexandre Oliva

* template1.C: New test.

From-SVN: r27885
parent 4cf6f930
1999-07-01 Alexandre Oliva <oliva@dcc.unicamp.br>
* template1.C: New test.
// 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
}
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