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
This commit is contained in:
parent
4f9664f71a
commit
d54ce1dfc6
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue