]> granicus.if.org Git - clang/commit
When synthesizing a label declaration based on a goto statement that
authorDouglas Gregor <dgregor@apple.com>
Mon, 14 Mar 2011 21:19:51 +0000 (21:19 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 14 Mar 2011 21:19:51 +0000 (21:19 +0000)
commit7cbc558ffda5877ec4d2e432534e3d3d4ac10050
treeda94f5bf295b07b01b82017c6f96caf478ddb6f0
parentdc0f137295bc7ec5b231ff1842388f149f43c0c8
When synthesizing a label declaration based on a goto statement that
cannot yet be resolved, be sure to push the new label declaration into
the right place within the identifier chain. Otherwise, name lookup in
C++ gets confused when searching for names that are lexically closer
than the label. Fixes PR9463.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127623 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/IdentifierResolver.h
lib/Sema/IdentifierResolver.cpp
lib/Sema/SemaDecl.cpp
test/SemaCXX/goto.cpp [new file with mode: 0644]