summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprObjC.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-06-04 20:48:08 +0000
committerTed Kremenek <kremenek@apple.com>2008-06-04 20:48:08 +0000
commit46267c839dd06848df940b857ab17672fcbb5b5e (patch)
treeeae3b8d87628991be3829bf9a26c7e1a0f61fb24 /clang/lib/Sema/SemaExprObjC.cpp
parentd9c2607014664ad7428844e23c32956de69a74c3 (diff)
downloadbcm5719-llvm-46267c839dd06848df940b857ab17672fcbb5b5e.tar.gz
bcm5719-llvm-46267c839dd06848df940b857ab17672fcbb5b5e.zip
Added fixmes.
llvm-svn: 51964
Diffstat (limited to 'clang/lib/Sema/SemaExprObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaExprObjC.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprObjC.cpp b/clang/lib/Sema/SemaExprObjC.cpp
index 108ff3c21e0..d833efe309e 100644
--- a/clang/lib/Sema/SemaExprObjC.cpp
+++ b/clang/lib/Sema/SemaExprObjC.cpp
@@ -339,6 +339,8 @@ static bool ClassImplementsProtocol(ObjCProtocolDecl *lProto,
// In gcc, it is also allowed assigning a protocol-qualified 'id'
// type to a LHS object when protocol in qualified LHS is in list
// of protocols in the rhs 'id' object. This IMO, should be a bug.
+ // FIXME: Treat this as an extension, and flag this as an error when
+ // GCC extensions are not enabled.
else if (RHSIsQualifiedID &&
ProtocolCompatibleWithProtocol(protoList[i], lProto))
return true;
OpenPOWER on IntegriCloud