* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / explicit5.C
blob1adb8d67ecdb3b2313a7aee526d5d06d2dbad0d1
1 // test for extension of DR 899 to handle template ctors
2 // { dg-do run { target c++11 } }
4 int r = 1;
6 struct C {
7   C() { }
8   template <class T = int> C(C&, T = 0) { r = 0; }
9 };
11 C c;
13 struct A
15   explicit operator C&() const { return c; }
18 int main()
20   A a;
21   C c2 (a);
23   return r;