This is the mail archive of the gcc@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.03a & maps (bug?)


Markus Klink <markus@sfb504.uni-mannheim.de> writes:

> #include <map>
> #include <string>
> #include <iostream>
> int main() { map<string,string> testmap; testmap["PAUL"]="foo0";
> testmap["MARKUS"]="foo1"; cout << testmap["PAUL"]; return 0; }

> /netec/home/adnetec/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.90.29/specs
> /usr/ccs/bin/as: "/var/tmp/cca006EK.s", line 1646: error: can't compute
> value of an expression involving an external symbol 

This seems to be a real bug, but you may work around this particular
instance of the problem by enabling optimization or by using the GNU
assembler, from the GNU binutils package.

-- 
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]