Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/base-operand-non-pointer-1.C

raw
1 class C { public: C f(); int get(); };
2 int f(C* p) { return p->f()->get(); } // { dg-error "28:base operand of .->. has non-pointer type .C." }