1 // { dg-do compile { target c++11 } }
2 
3 namespace N
4 {
5   template < typename T > class A
6   {
7     template < T > friend class B;  // { dg-error "not a valid type" "" { target c++17_down } }
8   };
9 
10   A < float > a;
11 }
12