]> granicus.if.org Git - clang/commit
[ObjC++] Don't enter a C++ declarator scope when the current context is
authorAlex Lorenz <arphaman@gmail.com>
Wed, 7 Dec 2016 10:24:44 +0000 (10:24 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 7 Dec 2016 10:24:44 +0000 (10:24 +0000)
commitadfb69666c622cf20c39d9fa4de3ec78170ba6e5
tree8b032043e5bc36e28769c513ce61ed32db5910a2
parent2e70037cfe544654fd596c4d1b79260766d4be7f
[ObjC++] Don't enter a C++ declarator scope when the current context is
an Objective-C declaration

This commit ensures that Sema won't enter a C++ declarator scope when the
current context is an Objective-C declaration. This prevents an assertion
failure in EnterDeclaratorContext that's used to ensure that current context
will be restored correctly after exiting the declarator context.

rdar://20560175

Differential Revision: https://reviews.llvm.org/D26922

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288893 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
lib/Sema/SemaCXXScopeSpec.cpp
test/SemaObjCXX/crash.mm