OSDN Git Service

* tree.c (dependent_name): OFFSET_REF and BASELINK
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 22:00:02 +0000 (22:00 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 22:00:02 +0000 (22:00 +0000)
are not dependent names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182667 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/tree.c

index 03040e1..10182fc 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-23  Jason Merrill  <jason@redhat.com>
+
+       * tree.c (dependent_name): OFFSET_REF and BASELINK
+       are not dependent names.
+
 2011-12-21  Jason Merrill  <jason@redhat.com>
 
        PR c++/51611
index 634c267..dea7632 100644 (file)
@@ -1463,6 +1463,8 @@ dependent_name (tree x)
   if (TREE_CODE (x) == IDENTIFIER_NODE)
     return x;
   if (TREE_CODE (x) != COMPONENT_REF
+      && TREE_CODE (x) != OFFSET_REF
+      && TREE_CODE (x) != BASELINK
       && is_overloaded_fn (x))
     return DECL_NAME (get_first_fn (x));
   return NULL_TREE;