Bug in gcc-2.95.1/Solaris2.6/STL class map

Andreas Jung ajung@sz-sb.de
Mon Oct 4 01:41:00 GMT 1999


I get the following compile error with this code:

#include <iostream>
#include <map>
#include <string>
using namespace std;

void main() {

    typedef map<string,string> myMap;
    myMap M;

    M["gcc"]="is a suxing compiler";

}

/usr/ccs/bin/as: "test.s", line 2284: error: can't compute value of an expression involving an external symbol


This error also occurs under Solaris 2.5.1 but not unter Solaris 2.7 (7.0).

Any idea ?

Andreas Jung


-- 
                                _\\|//_
                               (' O-O ')
------------------------------ooO-(_)-Ooo--------------------------------------
   Andreas Jung, Saarbrücker Zeitung Verlag und Druckerei GmbH
   Saarbrücker Daten-Innovations-Center
   Untertürkheimerstraße 17, D-66103 Saarbrücken, Germany
   Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509
   Email: ajung@sz-sb.de (PGP key available)
-------------------------------------------------------------------------------
"Well is UNIX Y2K-compliant?" and I said, ``No problem at all, but in 2038 I
plan on being retired, because it is not going to be a good year for UNIX
systems!'' (GvR)


More information about the Gcc-bugs mailing list