Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
incomplete10.C
blob: f0b406dfbfbdde7cb1151d59340328086f620cc4 [
file
] [
log
] [
blame
]
// PR c++/79420
struct
S
;
extern
S s
;
// { dg-error "'s' has incomplete type" }
template
<int>
int
f
()
{
return
s
.
x
;
}
void
g
()
{
f
<
0
>
();
}