[970929] Can't throw in constructor

H.J. Lu hjl@lucon.org
Mon Oct 6 20:20:00 GMT 1997


> 
> According to H.J. Lu:
> > > Bad news:  My exception-in-constructor test case fails.  (It's compiled
> > > with "-g", no optimization, with "-frtti":
> > 
> > I got
> > 
> > # gcc -O e.cc
> > # a.out
> > Noisy::new
> > Can't be noisy
> > 
> > under Linux with libc 5.4.39 and glibc 2.1.
> 
> Maybe you didn't notice that I did _not_ compile with optimzation.
> When I compile with optimization, I get success like you do.
> (I didn't think to try it.)

I got the same result with -g.

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)



More information about the Gcc mailing list