Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
>
();
}