[Bug c++/67113] unintelligent error message "only declarations of constructors can be 'explicit'" in cpp file's constructor define.

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 4 11:50:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67113

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is already fixed anyway, gcc 5 says:

a.cc:5:15: error: ‘explicit’ outside class declaration


More information about the Gcc-bugs mailing list