Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/this2.C

raw
1 // PR c++/88548
2 // { dg-do compile { target c++11 } }
3
4 struct S {
5 int a;
6 template <class> static auto m1 ()
7 -> decltype(this->a) { return 0; } // { dg-error "'this'" }
8 };