https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65598
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |5.0 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- GCC 5 says: e.cc:6:42: error: ‘explicit’ outside class declaration explicit ExplicitTest::operator bool() const ^ (The caret position is a well known issue with all error locations, there is work being done to improve things.)