blob: 0be26eab414ced67c89d11f9c8332a0e143f3663 [file] [log] [blame]
// { dg-options "-std=c++98 -pedantic-errors" }
// { dg-do assemble }
// Origin: Jason Merrill <jason@cygnus.com>
template <class T> struct A
{
struct B;
};
template<class T> struct C
{
friend typename A<T>::B; // { dg-error "" } `typename' not allowed
};