On Wed, Jan 25, 2012 at 11:29:58AM -0500, Jason Merrill wrote: > The problem here turns out to be that when free_lang_data_in_cgraph > tries to find all the decls and types in a function, it doesn't > catch a type that only appears in the fntype of a GIMPLE_CALL. This > patch fixes the bug; is there a better way to handle it?
Well, fntype isn't a gimple_op, so the generic code below it doesn't handle it. So I think it is fine. > Tested x86_64-pc-linux-gnu, OK for trunk? Yes. > commit 9febd1e3a2af987ecd1a62417b8948f679550254 > Author: Jason Merrill <ja...@redhat.com> > Date: Wed Jan 25 11:14:30 2012 -0500 > > PR c++/51992 > * tree.c (find_decls_types_in_node): Walk gimple_call_fntype. Jakub