[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:47: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
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The diagnostic is technically correct (the best kind of correct!) because that
is a definition of a constructor, not just a declaration.
i.e. you are focusing on the word constructors and saying "but it is a
constructor!" when you should be focusing on "declarations of constructors".
More information about the Gcc-bugs
mailing list