https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69733
--- Comment #2 from Bernd Schmidt <bernds at gcc dot gnu.org> --- Author: bernds Date: Fri Oct 7 12:21:55 2016 New Revision: 240863 URL: https://gcc.gnu.org/viewcvs?rev=240863&root=gcc&view=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