Message ID | 4EF4F989.6090207@redhat.com |
---|---|
State | New |
Headers | show |
commit a02c1be6a5cb39703b715e8b490976e8eacc9431 Author: Jason Merrill <jason@redhat.com> Date: Fri Dec 23 13:58:46 2011 -0500 * tree.c (dependent_name): OFFSET_REF and BASELINK are not dependent names. diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 634c267..dea7632 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -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;