aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-03-16 16:39:03 +0000
committerDouglas Gregor <dgregor@apple.com>2011-03-16 16:39:03 +0000
commit250e7a74d5a23db5bd7202ecb0bb4a8fef6016b4 (patch)
tree57f0f694b1dcf003464535b63c53a1846707770a /lib/Parse/Parser.cpp
parent4d000b322fb1e7ed7fa2de5ab4bfb473bad2edae (diff)
When we're inserting a synthesized label declaration for a
forward-looking "goto" statement, make sure to insert it *after* the last declaration in the identifier resolver's declaration chain that is either outside of the function/block/method's scope or that is declared in that function/block/method's specific scope. Previously, we could end up inserting the label ahead of declarations in inner scopes, confusing C++ name lookup. Fixes PR9491/<rdar://problem/9140426> and <rdar://problem/9135994>. Note that the crash-on-invalid PR9495 is *not* fixed. That's a separate issue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
0 files changed, 0 insertions, 0 deletions