This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
possible bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: possible bug
- From: "Xiaoming Yu" <yuxm8 at hotmail dot com>
- Date: Tue, 30 May 2000 20:06:38 PDT
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