From-SVN: r22062
This commit is contained in:
Mark Mitchell 1998-08-28 16:48:44 +00:00
parent a1dd0d36f4
commit 541be14b8a

View File

@ -0,0 +1,37 @@
// Build don't link:
// Special g++ Options:
// excess errors test - XFAIL *-*-*
template <class T>
struct B
{
typedef int I;
};
template <class T>
struct D : public B<T>
{
void f();
};
template <class T>
void D<T>::f()
{
I();
}
template <>
struct B<int>
{
void I();
};
int main()
{
D<int> di;
di.f();
}