This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.0.2, i686 & alpha, internal compiler error
- To: Reece Kimball Hart <reece at dasher dot wustl dot edu>
- Subject: Re: egcs-1.0.2, i686 & alpha, internal compiler error
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 09 Jun 1998 17:37:10 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <Pine.OSF.3.95.980608235145.4581A-100000@dasher.wustl.edu>
Reece Kimball Hart <reece@dasher.wustl.edu> writes:
> 2. egcs-2.90.27 980315 (egcs-1.0.2 release)
> ../configure --host=alphaev5-dec-osf4.0 --norecursion
> list.C:19: Internal compiler error.
The May 30 snapshot of egcs says:
test.cc: In function `int main(int, char **, char **)':
test.cc:19: static_cast from `__list_iterator<double,const double &,const double *>' to `double'
> for( list<double>::const_iterator it = dl.begin();
[snip]
> cout << static_cast<double>(it).data << endl;
Use `*it' instead of static_cast....data
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil