diff options
| -rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/template1.C | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog new file mode 100644 index 0000000..f8076c1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog @@ -0,0 +1,4 @@ +1999-07-01 Alexandre Oliva <oliva@dcc.unicamp.br> + + * template1.C: New test. + diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/template1.C b/gcc/testsuite/g++.old-deja/g++.oliva/template1.C new file mode 100644 index 0000000..6acd3fb --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/template1.C @@ -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 +} |
