Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/pr79304.C

raw
1 // PR c++/79304
2 // { dg-do compile }
3
4 struct C { };
5
6 template<class T>
7 struct X
8 {
9 C* c;
10
11 void f() {
12 this->c.s(); // { dg-error "->c" }
13 }
14 };
15
16 int main()
17 {
18 X<int> x;
19 x.f();
20 }