This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]