Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-mem1.C
blob3e422de40544e501d0f9a3f10390161d4efc2f6b
1 // PR c++/103968
2 // { dg-do compile { target c++11 } }
4 template <typename Opt, Opt const& options>
5 struct trait
7     template <typename T>
8     struct NonInstantiated{};
9 };
11 struct Options {};
13 template <typename T>
14 struct Widget
16     static constexpr auto c_options = Options{};
17     using Trait = trait<decltype(c_options), c_options>;
20 Widget<int>::Trait b{}; // Crashes GCC > 10.3