c++: auto member function and auto variable [PR106893]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn65.C
blob78bb004303bd7655d833b0e3e330ad7d8e71f587
1 // PR c++/106893
2 // { dg-do compile { target c++14 } }
4 template <typename T>
5 struct CoordTraits
7   static auto GetX(T const &p) { return 1; }
8 };
9 typedef CoordTraits<int> Traits;
10 static constexpr auto GetX = Traits::GetX;