[Bug c++/85580] [8/9 Regression] "conflicting C language linkage declaration" warning for variables with identical names in `extern "C"` functions

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 1 12:46:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85580

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May  1 12:45:49 2018
New Revision: 259793

URL: https://gcc.gnu.org/viewcvs?rev=259793&root=gcc&view=rev
Log:
        PR c++/85580 - extern "C" and local variables

        * name-lookup.c (check_extern_c_conflict): Ignore local decls.

Added:
    trunk/gcc/testsuite/g++.dg/parse/extern-C-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c


More information about the Gcc-bugs mailing list