* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr78765.C
blob6b66d26e5497af2133fad23b826df5b314d4d603
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" }
13 template <int> class ValueTypeInfo;
15 ValueTypeInfo<var> x;