summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-17 22:34:39 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-17 22:34:39 +0000
commit260681ca78b951dfaefddda0a3817d721d6a5ae9 (patch)
tree6f8d19894181d0532fe4e207cdf889906c554043 /gcc/cp
parentf15f2e565f60086a06501385a941899fb4b6fb7b (diff)
downloadgcc-260681ca78b951dfaefddda0a3817d721d6a5ae9.tar.gz
In gcc/cp/:
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. In gcc/testsuite/: 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 * obj-c++.dg/method-namespace-2.mm: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165602 138bc75d-0d04-0410-961f-82ee72b054a4
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);