egcs-1.0.2, i686 & alpha, internal compiler error

Alexandre Oliva oliva@dcc.unicamp.br
Tue Jun 9 14:27:00 GMT 1998


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




More information about the Gcc-bugs mailing list