This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65598] Fix column location for 'explicit'
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Mar 2015 12:51:28 +0000
- Subject: [Bug c++/65598] Fix column location for 'explicit'
- Auto-submitted: auto-generated
- References: <bug-65598-4 at http dot gcc dot gnu dot org/bugzilla/>
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!