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;
}