[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Thu Apr 19 15:29:03 2018 New Revision: 259499 URL: https://gcc.gnu.org/viewcvs?rev=259499=gcc=rev Log: PR c++/85464 - missing location for -Wignored-qualifiers diagnostic The fix for PR c++/69733 caused a regression for conversion operators with redundant cv-qualifiers, changing an incorrect location to an unknown location. This restores it to the incorrect location (as was already done on trunk by the fix for PR c++/65775). gcc/cp: PR c++/85464 - missing location for -Wignored-qualifiers diagnostic * decl.c (grokdeclarator): If declspecs->locations[ds_type_spec] is UNKNOWN_LOCATION fall back to input_location. gcc/testsuite: PR c++/85464 - missing location for -Wignored-qualifiers diagnostic * g++.dg/diagnostic/pr85464.C: New. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/diagnostic/pr85464.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 --- Comment #5 from Jonathan Wakely --- N.B. this caused a regression for conversion operators, see PR 85464.
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |7.0
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 Jonathan Wakely changed: What|Removed |Added CC||pawel_sikora at zoho dot com --- Comment #4 from Jonathan Wakely --- *** Bug 78119 has been marked as a duplicate of this bug. ***
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 Bernd Schmidt changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Bernd Schmidt --- Fixed.
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 --- Comment #2 from Bernd Schmidt --- Author: bernds Date: Fri Oct 7 12:21:55 2016 New Revision: 240863 URL: https://gcc.gnu.org/viewcvs?rev=240863=gcc=rev Log: c/ PR c++/69733 * c-decl.c (smallest_type_quals_location): New static function. (grokdeclarator): Try to find the correct location for an ignored qualifier. cp/ PR c++/69733 * decl.c (grokdeclarator): Try to find the correct location for an ignored qualifier. testsuite/ PR c++/69733 * c-c++-common/pr69733.c: New test. * gcc.dg/pr69733.c: New test. * gcc.target/i386/pr69733.c: New test. Added: trunk/gcc/testsuite/c-c++-common/pr69733.c trunk/gcc/testsuite/gcc.dg/pr69733.c trunk/gcc/testsuite/gcc.target/i386/pr69733.c Modified: trunk/gcc/c/ChangeLog trunk/gcc/c/c-decl.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-04-05 CC||manu at gcc dot gnu.org Ever confirmed|0 |1
[Bug c++/69733] -Wignored-qualifiers points to wrong const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733 Bernd Schmidt changed: What|Removed |Added CC||bernds at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |bernds at gcc dot gnu.org --- Comment #1 from Bernd Schmidt --- Having a go.