| 1 |
// PR c++/81247 confused error |
| 2 |
|
| 3 |
namespace N { // { dg-message "previous declaration" } |
| 4 |
} |
| 5 |
|
| 6 |
template < typename T > class A |
| 7 |
{ // { dg-error "redeclared as different" } |
| 8 |
template < T > friend class N; |
| 9 |
}; |
| 10 |
|
| 11 |
void f () |
| 12 |
{ |
| 13 |
A < int > a1; |
| 14 |
} |