[tree-ssa] C++ miscompilation with ctors and dtors

Wolfgang Bangerth bangerth@ices.utexas.edu
Tue Oct 28 19:20:00 GMT 2003


On Tuesday 28 October 2003 11:45 am, Richard Henderson wrote:
> On Mon, Oct 27, 2003 at 04:41:40PM -0600, Wolfgang Bangerth wrote:
> >   switch(0) {
> >     case 1:
> >       {
> >         Y y3;
> >         return 0;
> >       }
>
> I suspect that this bug is due to the horriblenesss of how
> switches are handled at the moment.  I expect to have this
> representation fixed by the end of the week.  We'll see if
> this magically goes away then.

Hopefully it will. On the other hand, 
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12789
is a bug that might be related but doesn't have a switch statement (it has a 
tail resursion and an if-statement immediately before it, though, so I can 
see how that code could be transformed into something very similar as above 
pretty easily).

In any case, thanks for looking into it!
  W.
 
-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/



More information about the Gcc mailing list