This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85958] Make const qualifier error clear
- From: "jg at jguk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Jun 2018 13:30:04 +0000
- Subject: [Bug c++/85958] Make const qualifier error clear
- Auto-submitted: auto-generated
- References: <bug-85958-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85958
--- Comment #6 from Jonny Grant <jg at jguk dot org> ---
Clang shows:
$ clang -o main main.cpp -Wall -Werror -Wconversion
main.cpp:15:5: error: no matching function for call to 'strstripspace'
strstripspace(unused, two);
^~~~~~~~~~~~~
main.cpp:5:6: note: candidate function not viable: 1st argument ('const int')
would lose const qualifier
void strstripspace(int & value, int & two)
^
1 error generated.