This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68533] bogus location for "warning: âstruct s3â declared inside parameter list will not be visible outside of this definition or declaration"
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Dec 2015 07:33:37 +0000
- Subject: [Bug c/68533] bogus location for "warning: âstruct s3â declared inside parameter list will not be visible outside of this definition or declaration"
- Auto-submitted: auto-generated
- References: <bug-68533-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68533
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 2 07:33:06 2015
New Revision: 231147
URL: https://gcc.gnu.org/viewcvs?rev=231147&root=gcc&view=rev
Log:
PR c/68533
* c-decl.c (get_parm_info): Use b->locus instead of input_location
for diagnostics.
* gcc.dg/pr68533.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr68533.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog