blob: 65ec58e23f4927bfb553a2148d085a08c3aa4e89 [file] [log] [blame]
// PR c++/59930
namespace N {
template < typename T > class A
{
// Injects N::N
template < T > friend class N;
// { dg-error "template parameter" "" { target *-*-* } .-1 }
// { dg-message "note: redeclared" "" { target *-*-* } .-2 }
};
}
void f ()
{
N::A < int > a1;
N::A <short > a2;
}