c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-conv4.C
blobf4e3f00a585bd90c2808f8513edc89d5b984ada9
1 // PR c++/87145
2 // { dg-do compile { target c++11 } }
4 struct S {
5   int val;
7   constexpr operator int() const {
8     return static_cast<int>(val);
9   }
12 template<int N>
13 struct F { };
15 template<unsigned N>
16 constexpr void foo() {
17   F<int{N}> f;
18   F<S{N}> f2;
21 int
22 main()
24   foo<2>();