This is the mail archive of the gcc-bugs@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]

Re: Internal compiler error in expand_end_loop, at stmt.c:2563


> 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


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