[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#11612: G++ Internal Compiler Error with Exceptions and Set Arrays



> > Package: gcc
> > Version: 2.7.2.1-8
> >
> > When compiling arrays of sets with G++ and exception handling enabled, I
> > get an internal compiler error.  Here is a transcript (including a file
> > that demonstrates the problem):
> 
> That sure is the shortest piece of exception code I've seen that gets
> gcc to internal-compiler error (without actually using any of the magical
> "catch" or "throw" words).
> 
> However, when I run into exception-related gcc bugs, I always
> split up the "offending" function. Works here too, the following
> compiles OK (don't know about linking, but that never has been a
> problem for me).

That's basically what I did.  I created a method:

    ObjectSet* newObjectSet(int size) { return new ObjectSet[size]; }

and then called that twice in a row.  Works fine and easy to undo in
the future.

                                          Brian
                                 ( bcwhite@verisim.com )

-------------------------------------------------------------------------------
 The squeaky wheel doesn't always get the grease.  Sometimes it gets replaced.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: