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