blob: f0ac2224af5b3c95aa8d2c7129953a5403a003d6 [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct A { constexpr operator int() { return 42; } };
template<class T>
struct B {
static const int versionConst = A();
enum { versionEnum = versionConst };
};