diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename13.C b/gcc/testsuite/g++.old-deja/g++.pt/typename13.C new file mode 100644 index 00000000000..48d12e6351e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename13.C @@ -0,0 +1,37 @@ +// Build don't link: +// Special g++ Options: +// excess errors test - XFAIL *-*-* + +template +struct B +{ + typedef int I; +}; + + +template +struct D : public B +{ + void f(); +}; + + +template +void D::f() +{ + I(); +} + + +template <> +struct B +{ + void I(); +}; + + +int main() +{ + D di; + di.f(); +}