[Bug c++/65598] Misleading error message for out-of-class definition of explicit conversion operator
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 27 11:17:00 GMT 2015
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.)
More information about the Gcc-bugs
mailing list