1// { dg-do compile } 2// PR c++/18733: Validation of template headers in friends 3 4template<int> struct A 5{ 6 void foo(); 7}; 8 9struct B 10{ 11 friend void A<0>::foo(); 12}; 13