1 // PR c++/68918 2 // { dg-do compile { target c++11 } } 3 4 struct foo { afoo5 static void a() {} 6 7 auto b() const -> decltype( this->a() ) 8 {} 9 10 template<typename X> 11 auto c() -> decltype( this->a() ) 12 {} 13 14 template<typename X> 15 auto d() const -> decltype( a() ) 16 {} 17 18 template<typename X> 19 auto e() const -> decltype( this->a() ) 20 {} 21 }; 22 main()23int main() 24 { 25 } 26