possible bug

Xiaoming Yu yuxm8@hotmail.com
Tue May 30 20:07:00 GMT 2000


Hello,

I tried to compile the following picece of code
using gcc-2.8.0-sunos5.6.

#include <map>
#include <string>
#include <functional>
#include <algorithm>

int main() {

  map< string, string > mss;

  mss["hello"] = "hello";
  return 0;
}

But I got the following error message.

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

I am not sure if this is really a bug. But
according to the syntax of c++, it is correct.
Has anyone experienced this kind of situation?
If it is not a bug, could anyone be kind enough
to point out what I did wrong? Thanks a lot!

Sincerely,
Xiaoming Yu

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



More information about the Gcc-bugs mailing list