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]

<map> problem on solaris


Hello, I'm running into a problem, which may be a bug in egcs.  The
following program is (I think) valid:


#include <map.h>
#include <string>

main() {
    map <string, string> a;
    string b("frog");
    string c("test");

    a[b] = c;
}


However, when I try to compile it with egcs 1.0.3, or egcs 19980621, I
always get an error like:

/usr/ccs/bin/as: "/var/tmp/cca0062..s", line 2454: error: can't compute value of an expression involving an external symbol

This is on sparc-sun-solaris2.5.1.

Please let me know if there is anything else I can tell you.  Should I
send part of the offending assembler code?  Would binutils be helpful
on Solaris?  What version of binutils?

Adrian


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