This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: c++ scoping problems
- To: nathan at cs dot bris dot ac dot uk
- Subject: Re: c++ scoping problems
- From: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Date: Wed, 26 Sep 2001 10:24:14 -0600
- Cc: gcc-patches at gcc dot gnu dot org, harinath at cs dot umn dot edu, jason at redhat dot com
- References: <20010925171506.A11075@opensource.lineo.com> <3BB19277.9E3F4195@acm.org>
On Wed, Sep 26, 2001 at 09:31:51AM +0100, Nathan Sidwell wrote:
> Matt Kraai wrote:
> > I've been investigating c++/4376, which reports a consistency
> > check failure compiling KDE. I've reduced the problem to the
> > following testcase:
> This is a duplicate of 4206. I posted the same patch at
> http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00080.html. Jason had a
> query about its relationship to -fno-for-scope, which seems to be ok
> (but then Jason went on vacation, and I was waiting on that to pick
> it up). Unfortunately Raja R Harinath posted another case for which
> the patch fails (it's in the same thread).
> I've not had time to investigate. I think you're on the right
> lines -- see what's going on with Raja's case.
I'm sorry, I didn't mean to duplicate your effort. Does GNATS
have a method for handling duplicate PRs?
In any case, I don't think that Raja's failure is caused by this
patch. It fails for me with both a patched and an unpatched
version of GCC. An EH_REGION_BEG note appears before the loop,
while the EH_REGION_END note appears within. This causes the
eh_region count to become negative while processing the loop,
causing a consistency check failure.
Matt