(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
constexpr-template3.C
// { 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 };
};