Commit d54ce1df by Jason Merrill Committed by Jason Merrill

tree.c (dependent_name): OFFSET_REF and BASELINK are not dependent names.

	* tree.c (dependent_name): OFFSET_REF and BASELINK
	are not dependent names.

From-SVN: r182667
parent 4f9664f7
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> 2011-12-21 Jason Merrill <jason@redhat.com>
PR c++/51611 PR c++/51611
......
...@@ -1463,6 +1463,8 @@ dependent_name (tree x) ...@@ -1463,6 +1463,8 @@ dependent_name (tree x)
if (TREE_CODE (x) == IDENTIFIER_NODE) if (TREE_CODE (x) == IDENTIFIER_NODE)
return x; return x;
if (TREE_CODE (x) != COMPONENT_REF if (TREE_CODE (x) != COMPONENT_REF
&& TREE_CODE (x) != OFFSET_REF
&& TREE_CODE (x) != BASELINK
&& is_overloaded_fn (x)) && is_overloaded_fn (x))
return DECL_NAME (get_first_fn (x)); return DECL_NAME (get_first_fn (x));
return NULL_TREE; return NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment