This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.0.2 Crash (3)
- To: "Munagala V. S. Ramanath" <ram at netcom dot com>
- Subject: Re: egcs-1.0.2 Crash (3)
- From: David Lucas <dlucas at checkfree dot com>
- Date: Mon, 20 Apr 1998 14:25:35 -0400
- CC: egcs-bugs at cygnus dot com
- Organization: CheckFree, SSD
- References: <199804201507.IAA22970@netcom7.netcom.com>
Munagala V. S. Ramanath wrote:
>
> The following program causes egcs-1.0.2 to crash with:
> crash3.C: In function `int main()':
> crash3.C:8: Internal compiler error.
> crash3.C:8: Please submit a full bug report to `egcs-bugs@cygnus.com'.
>
> Version details:
> Reading specs from /d2a/exper/lib/gcc-lib/sparc-sun-sunos4.1.2/egcs-2.90.27/specs
> gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
>
> ----------- CUT HERE ------------------------ CUT HERE -------------
> // this program crashes egcs-1.0.2
> //
> #include <stl.h>
> main()
> {
> list< int > alist;
> list< int >::iterator p = alist.begin();
> void *q = static_cast< void * >( p );
>
> return 0;
> }
This is what I got ...
% g++ egcs_crash.cpp -o egcs_crash
egcs_crash.cpp: In function `int main()':
egcs_crash.cpp:8: static_cast from `__list_iterator<int,int &,int *>' to
`void *'
[dlucas@rogue:/usera/dlucas/hp]
% g++ -v
Reading specs from
/cf/egcs/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.22/specs
gcc version egcs-2.91.22 980404 (gcc2 ss-980401 experimental)
Hope that helps some. I would have expected a warning or error out of
the above. At least it is getting closer to explaining itself. ;-)
Later,
Dave
--
-----------------------------------------------------------------
David Lucas | mailto:dlucas@checkfree.com
Staff Software Engineer |
Systems Software Development | My opinions are IMHO.
OFX Server Devl 08-126 |
|
CheckFree Corporation | Work# 614.825.3511
8275 High Street | Fax# 614.825.3104
Columbus, OH 43235 | http://www.checkfree.com
-----------------------------------------------------------------