------- Comment #2 from jakub at gcc dot gnu dot org  2010-02-11 18:43 -------
Unfortunately the patch regresses default3.C (line 28), but keeping the current
code isn't an option either, on defarg14.C we don't error just because the
ggc_free'd decl's code happens to be still mapped and is not a FUNCTION_DECL.
So, we want to warn on x only if it hasn't been freed by duplicate_decls,
remembering the type of x before push_overloaded_decl calls doesn't work
either.

Jason, can you please have a look at this?


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org
         AssignedTo|jakub at gcc dot gnu dot org|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43033

Reply via email to