(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
explicit5.C
// test for extension of DR 899 to handle template ctors
// { dg-do run { target c++11 } }

int r = 1;

struct C {
  C() { }
  template <class T = int> C(C&, T = 0) { r = 0; }
};

C c;

struct A
{
  explicit operator C&() const { return c; }
};

int main()
{
  A a;
  C c2 (a);

  return r;
}