Andreas Schwab writes: > Daniel Berlin writes: > > |> The attached patch should actually fix it, even though i haven't been able to > |> reproduce it on my platforms. > > It does not change anything. lookup_decl_die still returns NULL after > gen_decl_die has been called. It does work on the HEAD, probably due to another bugfix somewhere else. The likely cause for not working on the branch is that gen_decl_die isn't doing anything. This happens if the DECL is marked to be ignored, or it's an ERROR_MARK, or it's a CONST_DECL (an enum), etc. In fact, diffing the HEAD dwarf2out against the branch shows me there are only two changes in the way we generate dies, neither of which would have any affect whatsoever on this bug. Looking at the changelogs between the head and the branch, and based on timing, A random guess as to what made this start working on the head, is a 2001-03-21 change by Jason (look at the head cp/ChangeLog) that involved changing a few things about templates. I can guarantee you the real bug isn't in dwarf2out (once you have the patch installed), because if we aren't generating the decl die, something is set wrong, somewhere. Can you see why gen_decl_die isn't generating the die? (IE what case it's breaking/returning on) This should give you a large clue as to what is wrong. --Dan > > Andreas. > > -- > Andreas Schwab "And now for something > SuSE Labs completely different." > Andreas.Schwab@suse.de > SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg > Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 -- Factorials were someone's attempt to make math *look* exciting.