https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65598
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |NEW Last reconfirmed| |2015-03-27 CC| |manu at gcc dot gnu.org Resolution|DUPLICATE |--- Summary|Misleading error message |Fix column location for |for out-of-class definition |'explicit' |of explicit conversion | |operator | Ever confirmed|0 |1 --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > 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.) I don't think we have a bug open for 'explicit', so this one could be it. It is probably an EasyHack ideal for a new contributor. Please consider submitting a patch: https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps Small patches don't need any copyright assignment!