| 1 |
// PR c++/65598 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct ExplicitTest |
| 5 |
{ |
| 6 |
explicit operator bool() const; |
| 7 |
}; |
| 8 |
|
| 9 |
explicit ExplicitTest::operator bool() const // { dg-error "1:'explicit' outside class declaration" } |
| 10 |
{ |
| 11 |
return true; |
| 12 |
} |