☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
incomplete10.C
☽
☼
gcc/testsuite/g++.dg/template/incomplete10.C
code
plain
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
}