This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error: BB 13 can not throw but has EH edges
- From: Brian Dessent <brian at dessent dot net>
- To: Harald van D?k <truedfx at gentoo dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 14 Apr 2008 21:22:10 -0700
- Subject: Re: error: BB 13 can not throw but has EH edges
- References: <20080414195733.GA28650@boostbox.mill1.nb.home.nl>
- Reply-to: gcc-help at gcc dot gnu dot org
Harald van D?k wrote:
> - Is this a known issue? I've searched for this error, but only got
> results requiring specific compiler options that aren't necessary to get
> it to fail here. I will report it as a bug if it's not known (and not
> already fixed by accident).
This looks like <http://gcc.gnu.org/PR35261>.
> - When I disable checking, GCC does not generate any error message. Can
> I expect that the code it generates will be correct, or might it be
> broken and going undetected?
Disabling checking just papers over the real problem, which is an
internal inconsistency in gcc. Whether or not the generated code is
correct is unknown.
> - What would you recommend as a workaround (other than disabling
> checking)? My first guess would be to remove __attribute__((__const__)), but
> that's not an option, as it's part of gtk, and not of the program
> itself. Do you have a good alternative?
I'd add your testcase to that PR above, at least. You could also try
the current trunk and see if it's fixed there.
Brian