Debian Codegraph @

gcc/testsuite/g++.dg/template/incomplete10.C

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