This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/68533] bogus location for "warning: âstruct s3â declared inside parameter list will not be visible outside of this definition or declaration"


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]