[Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85468 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2020-11-10 00:00:00 |2021-05-19 --- Comment #3 from Jonathan Wakely --- >From Bug 100668: const char* const f() { return nullptr; } char const* const f2() { return nullptr; } char* const f3() { return nullptr; } c.C:1:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 1 | const char* const f() { | ^ c.C:6:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 6 | char const* const f2() { | ^~~~ c.C:10:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 10 | char* const f3() { | ^~~~
[Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85468 Jonathan Wakely changed: What|Removed |Added CC||brahim.pro at protonmail dot com --- Comment #2 from Jonathan Wakely --- *** Bug 100668 has been marked as a duplicate of this bug. ***
[Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85468 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2020-11-10 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- I forgot to say that the test needs -Wignored-qualifiers (as shown in the diagnostic). Still present on trunk.