mingw32 egcs bug report - segmentation fault related to use of `this'?

Horst von Brand vonbrand@inf.utfsm.cl
Tue Jan 12 10:30:00 GMT 1999


rich.c@es.co.nz (Rich Churcher) said:
> under Win98, (Pentium II), egcs 1.1.1 mingw32
> 
> CC1PLUS caused an invalid page fault in
> module CC1PLUS.EXE at 015f:00401d52.
> 
> To reproduce: 
> 
> class foo{ 
> 	foo( foo* ptr = this ); 
> };

egcs-19990103 here (sparc-sun-solaris2.5.1) gives:

vonbrand@pincoya$ c++ -c tst.cc
tst.cc:2: invalid use of `this' at top level
tst.cc:2: confused by earlier errors, bailing out

So this appears to be fixed in the development branch.

Thanks for the report!
-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513




More information about the Gcc-bugs mailing list