[Bug c++/85958] Make const qualifier error clear
jg at jguk dot org
gcc-bugzilla@gcc.gnu.org
Wed May 30 09:47:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85958
--- Comment #3 from Jonny Grant <jg at jguk dot org> ---
(In reply to Jonathan Wakely from comment #2)
> (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.
Sounds good. I support this improvement!
More information about the Gcc-bugs
mailing list