simple STL bug
Patrick Connolly
Patrick_ConnollyATNetcomSystems.com
Wed Sep 15 10:47:00 GMT 1999
Title: simple STL bug
When I atempt to compile this simple file:
#include <string>
#include <set>
void main (void) {
ÃÂ ÃÂ ÃÂ ÃÂ set<string> SM;ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ SM.insert("red");
ÃÂ ÃÂ ÃÂ ÃÂ SM.insert("green");
ÃÂ ÃÂ ÃÂ ÃÂ SM.insert("blue");
ÃÂ ÃÂ ÃÂ ÃÂ SM.erase("green");ÃÂ //Compiler cann't handle this
}ÃÂ
ÃÂ ÃÂ ...I get this error message:
> g++ nested.c /usr/ccs/bin/as: "/var/tmp/cc5M1nu0.s", line 2736: error: can't compute value of an expression involving an external symbol
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ I understand that this is probably coming from a bug in the Sun assembler,ÃÂ but is there a workaround for this?ÃÂ Does this mean that one can't compile a file using a simple STL set of strings on the gnu compiler (assuming that one would want to erase members from the set) ?
Patrick Connolly
More information about the Gcc-bugs
mailing list