[PATCH] D26922: [ObjC++] Don't enter a C++ declarator context when the current context is an Objective-C declaration
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 30 04:06:09 PST 2016
arphaman added a comment.
> Also, the following code (which is not valid) crashes with ToT trunk,
>
> @property (nonatomic) int OuterType::InnerType
>
>
> but compiles without any errors with your patch applied. Do you know why clang doesn't error out?
This worked because clang continued parsing `InnerType` as the name of the property. The updated patch fixes this by ensuring that we don't interpret this token as a property name, so now this example will have a compilation error.
Repository:
rL LLVM
https://reviews.llvm.org/D26922
More information about the cfe-commits
mailing list