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: egcs-1.0.2, i686 & alpha, internal compiler error


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



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