From: Steve Naroff Date: Mon, 12 Nov 2007 04:22:52 +0000 (+0000) Subject: Make sure @property is allowed within a category. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaf5f419a50a8a5297a0815f987c4dbf6c247017;p=clang Make sure @property is allowed within a category. Bug submitted by Keith Bauer. CookieJar:Desktop keith$ cat test.m #import git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44007 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index ec88087f89..3933963a71 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -1763,8 +1763,9 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, DeclTy *TagDecl, if (isa(static_cast(TagDecl))) NewFD = new FieldDecl(Loc, II, T, BitWidth); - else if (isa(static_cast(TagDecl)) - || isa(static_cast(TagDecl))) + else if (isa(static_cast(TagDecl)) || + isa(static_cast(TagDecl)) || + isa(static_cast(TagDecl))) NewFD = new ObjcIvarDecl(Loc, II, T); else assert(0 && "Sema::ActOnField(): Unknown TagDecl");