Commit a5ef9010 by Jason Merrill Committed by Jason Merrill

*** empty log message ***

From-SVN: r7774
parent d996122c
Wed Jul 13 03:57:54 1994 Jason Merrill (jason@deneb.cygnus.com) Wed Jul 13 03:57:54 1994 Jason Merrill (jason@deneb.cygnus.com)
* method.c (hack_identifier): Put back old code so lists of
non-functions will be handled properly.
* cp-tree.h (TYPE_NEEDS_CONSTRUCTING): #if 0 out; this macro is now * cp-tree.h (TYPE_NEEDS_CONSTRUCTING): #if 0 out; this macro is now
defined in the language-independent tree.h. defined in the language-independent tree.h.
......
...@@ -1458,7 +1458,7 @@ hack_identifier (value, name, yychar) ...@@ -1458,7 +1458,7 @@ hack_identifier (value, name, yychar)
return build_component_ref (C_C_D, name, 0, 1); return build_component_ref (C_C_D, name, 0, 1);
} }
if (TREE_CODE (value) == TREE_LIST) if (really_overloaded_fn (value))
{ {
tree t = get_first_fn (value); tree t = get_first_fn (value);
while (t) while (t)
...@@ -1468,6 +1468,16 @@ hack_identifier (value, name, yychar) ...@@ -1468,6 +1468,16 @@ hack_identifier (value, name, yychar)
t = DECL_CHAIN (t); t = DECL_CHAIN (t);
} }
} }
else if (TREE_CODE (value) == TREE_LIST)
{
tree t = value;
while (t && TREE_CODE (t) == TREE_LIST)
{
assemble_external (TREE_VALUE (t));
TREE_USED (t) = 1;
t = TREE_CHAIN (t);
}
}
else else
{ {
assemble_external (value); assemble_external (value);
......
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