+Thu Mar 6 14:20:15 CET 2003 Jan Hubicka <jh@suse.cz>
+
+ * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
+
2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* dwarf2out.c (size_of_die): Compute size of external reference to
cgraph_nodes = node;
cgraph_n_nodes++;
*slot = node;
- if (DECL_CONTEXT (decl))
+ if (DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL)
{
node->origin = cgraph_node (DECL_CONTEXT (decl));
node->next_nested = node->origin->nested;