Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
explicit9.C
blob: 4afaafa26687677354d4c8f6c708de0064b2e5fc [
file
] [
log
] [
blame
]
// PR c++/65598
// { dg-do compile { target c++11 } }
struct
ExplicitTest
{
explicit
operator
bool
()
const
;
};
explicit
ExplicitTest
::
operator
bool
()
const
// { dg-error "1:'explicit' outside class declaration" }
{
return
true
;
}