Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
pr79304.C
blob: eedae42cbdf16b95709b05b4b18882a2fc24e513 [
file
] [
log
] [
blame
]
// PR c++/79304
// { dg-do compile }
struct
C
{
};
template
<
class
T
>
struct
X
{
C
*
c
;
void
f
()
{
this
->
c
.
s
();
// { dg-error "->c" }
}
};
int
main
()
{
X
<int>
x
;
x
.
f
();
}