blob: c5b22ab479f578d145a39ab47e99792ecae99018 [file] [log] [blame]
// PR c++/81247 ICE
namespace N // { dg-message "previous declaration" }
// { dg-error "expected" "" { target *-*-* } .+1 }
template < typename T > class A
{ // { dg-error "redeclared as different" }
template < T > friend class N;
};
void f ()
{
A < int > a1; // { dg-message "required from here" }
}