This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal compiler error in expand_end_loop, at stmt.c:2563
- To: Jan Hubicka <jh at suse dot cz>, Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>, "jason_merrill at redhat dot com" <jason_merrill at redhat dot com>, "nathan at codesourcery dot com" <nathan at codesourcery dot com>
- Subject: Re: Internal compiler error in expand_end_loop, at stmt.c:2563
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 05 Oct 2001 12:41:31 -0700
- cc: Richard Henderson <rth at cygnus dot com>, "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
> I've tracked down the problem to be in exception region too early closed,
> so it's REGION_END note appears in the middle of loop.
> This is caused by CTOR_STMT expanding (with BEGIN set to 0), that is
> aparently inpaired with CTOR_STMT with BEGIN set to 1.
I don't fully understand what you mean.
When processing_template_decl is on, the front-end is not really
generating code. It will go back and instantiate the template later,
and at that point setup_vtbl_ptr should be called again -- but
this time we will add the CTOR_STMT to mark the beginning of the
constructor. At the end of the function, we should have another
CTOR_STMT; they should always come in matched pairs. The first one
should have CTOR_BEGIN_P set; the second should not.
Do you have code where we end up with a mismatched pair?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com