1 // { dg-do compile { target c++11 } }
2 
3 struct A { constexpr operator int() { return 42; } };
4 
5 template<class T>
6 struct B {
7   static const int versionConst = A();
8   enum { versionEnum = versionConst };
9 };
10