re PR c++/69733 (-Wignored-qualifiers points to wrong const)
authorBernd Schmidt <bernds@redhat.com>
Fri, 7 Oct 2016 12:21:55 +0000 (12:21 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 7 Oct 2016 12:21:55 +0000 (12:21 +0000)
commit8a14afd0657b21e1de31fd1b2146056b09dbab5b
tree789ca4cb57ff3dbdcb638df0d2d1332b46093ad5
parent1edfde32a81006b564eb290a5989f473ab2d9af9
re PR c++/69733 (-Wignored-qualifiers points to wrong const)

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.

From-SVN: r240863
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr69733.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr69733.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr69733.c [new file with mode: 0644]