[Bug c++/85958] Make const qualifier error clear
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 29 10:51:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85958
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=53281
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonny Grant from comment #1)
> My idea of what would be clearest is :-
>
> Cannot pass ‘const int‘ as ‘int&‘ (non const)
I don't think that's an improvement at all.
But "... discards const qualifier" or "... discards volatile qualifier" or
"...discards const and volatile qualifiers" might be OK. Or saying "as
reference of non-const type 'int&'" similar to my proposed fix for PR 53281.
More information about the Gcc-bugs
mailing list