]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/68533 (bogus location for "warning: ‘struct s3’ declared inside parameter...
authorJakub Jelinek <jakub@redhat.com>
Wed, 2 Dec 2015 07:33:06 +0000 (08:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Dec 2015 07:33:06 +0000 (08:33 +0100)
commit657e4e47344408f7ca6b3c05bd86337dd424a3cf
tree0916e5db0f1f5a9235cadfad0dd148b31c92f286
parentfe78aa0474d9469384951dbddcd5aeea5f40c03c
re PR c/68533 (bogus location for "warning: ‘struct s3’ declared inside parameter list will not be visible outside of this definition or declaration")

PR c/68533
* c-decl.c (get_parm_info): Use b->locus instead of input_location
for diagnostics.

* gcc.dg/pr68533.c: New test.

From-SVN: r231147
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68533.c [new file with mode: 0644]