[PATCH] Fix PR c++/37647: ICE with invalid use of constructor
Mark Mitchell
mark@codesourcery.com
Mon Oct 13 03:24:00 GMT 2008
Simon Martin wrote:
> The problem is that DECL_CONSTRUCTOR is set for "void A();", which
> implies that we call 'grok_ctor_properties' itself calling 'copy_fn_p',
> that asserts that the passed declaration "has" DECL_FUNCTION_MEMBER_P,
> which is obviously not the case here.
Is there any way that we can avoid even getting the idea that this is an
sfk_constructor? Your patch seems like it's a bit later than we'd like;
we're concluding that the function is sfk_constructor and then backing
out when we notice that ctype is NULL. Can we just avoid concluding
this is a constructor at all?
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
More information about the Gcc-patches
mailing list