This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR c++/37647: ICE with invalid use of constructor


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]