1 // PR c++/49003 2 // { dg-do compile { target c++11 } } 3 4 struct A { 5 auto a() const -> decltype(this) { return this; } 6 }; 7