c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype71.C
blob24c3abfba49ba1b63807275f79ad136961344bc5
1 // PR c++/68918
2 // { dg-do compile { target c++11 } }
4 struct foo {
5     static void a() {}
7     auto b() const -> decltype( this->a() )
8     {}
10     template<typename X>
11     auto c() -> decltype( this->a() )
12     {}
14     template<typename X>
15     auto d() const -> decltype( a() )
16     {}
18     template<typename X>
19     auto e() const -> decltype( this->a() )
20     {}
23 int main()