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]

possible bug


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


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