This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: mingw32 egcs bug report - segmentation fault related to use of `this'?
- To: rich dot c at es dot co dot nz (Rich Churcher)
- Subject: Re: mingw32 egcs bug report - segmentation fault related to use of `this'?
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Tue, 12 Jan 1999 15:29:48 -0300
- cc: khan at xraylith dot wisc dot edu, egcs-bugs at cygnus dot com
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