This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/37647: ICE with invalid use of constructor
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Simon Martin <simartin at users dot sourceforge dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 12 Oct 2008 14:28:57 -0700
- Subject: Re: [PATCH] Fix PR c++/37647: ICE with invalid use of constructor
- References: <48E59333.8020004@users.sourceforge.net>
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