summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog10
-rw-r--r--gcc/cp/parser.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index fc26e00d34f..9073ccb6ea3 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,6 +1,16 @@
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
Merge from apple/trunk branch on FSF servers.
+
+ 2006-04-19 Fariborz Jahanian <fjahanian@apple.com>
+
+ Radar 4516785
+ * parser.c (cp_parser_simple_type_specifier): Don't lookup for
+ objc object types if type is scope qualified.
+
+2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ Merge from apple/trunk branch on FSF servers.
2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 670337e5f46..cfc3dddb98a 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -12753,7 +12753,7 @@ cp_parser_simple_type_specifier (cp_parser* parser,
/* As a last-ditch effort, see if TYPE is an Objective-C type.
If it is, then the '<'...'>' enclose protocol names rather than
template arguments, and so everything is fine. */
- if (c_dialect_objc ()
+ if (c_dialect_objc () && !parser->scope
&& (objc_is_id (type) || objc_is_class_name (type)))
{
tree protos = cp_parser_objc_protocol_refs_opt (parser);