[Bug c++/85580] [8 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 13:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85580
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 1 13:29:52 2018
New Revision: 259796
URL: https://gcc.gnu.org/viewcvs?rev=259796&root=gcc&view=rev
Log:
PR c++/85580 - extern "C" and local variables
* name-lookup.c (check_extern_c_conflict): Ignore local decls.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/parse/extern-C-2.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/name-lookup.c
More information about the Gcc-bugs
mailing list