c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr78765.C
blob4c63fddb6840091fb17d0a70aec8e18585d0842c
1 // PR c++/78765
2 // { dg-do compile { target c++11 } }
4 // ICE with failed constexpr object and member fn call
6 struct ValueType {
7   constexpr operator int() const {return field;}
8   int field;
9 };
11 static constexpr ValueType var = 0; // { dg-error "conversion|convert" }
13 template <int> class ValueTypeInfo;
15 ValueTypeInfo<var> x;