(gen_subprogram_die): When handling declarations...

(gen_subprogram_die): When handling declarations, test
DECL_CONTEXT not decl_class_context before equate_decl_number_to_die.

From-SVN: r14403
This commit is contained in:
Jim Wilson 1997-07-08 15:07:41 -07:00
parent bb21487f9b
commit f6c74b0225

View File

@ -7621,7 +7621,7 @@ gen_subprogram_die (decl, context_die)
the class to which it belongs. We make sure of this by emitting
the class first. The next time is the definition, which is
handled above. The two may come from the same source text. */
if (decl_class_context (decl))
if (DECL_CONTEXT (decl))
equate_decl_number_to_die (decl, subr_die);
}
else if (DECL_ABSTRACT (decl))