1 // PR c++/79420 2 3 struct S; 4 extern S s; // { dg-error "'s' has incomplete type" } f()5 template<int> int f () 6 { 7 return s.x; 8 } 9 g()10 void g () 11 { 12 f<0> (); 13 } 14