* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / explicit8.C
blob9a8ecb348c602538a477048280a7d2cd4d0fc30c
1 // PR c++/60686
2 // { dg-do compile { target c++11 } }
4 struct A {
5   explicit operator int() const;
6 };
8 explicit inline A::operator int() const { return 1; }  // { dg-error "1:'explicit' outside class declaration" }
10 struct B {
11   explicit void f();  // { dg-error "3:only declarations of constructors and conversion operators can be 'explicit'" }
14 explicit void B::f() { }  // { dg-error "1:'explicit' outside class declaration" }
16 struct C {
17   explicit C(int);
20 struct D {
21   explicit friend C::C(int);  // { dg-error "3:'explicit' in friend declaration" }