Bug in g++ Compiler 2.95.1 (on Solaris2.6)
Patrick Connolly
Patrick_Connolly@NetcomSystems.com
Mon Sep 13 10:01:00 GMT 1999
Title: Bug in g++ Compiler 2.95.1 (on Solaris2.6)
When I attempt to compile this code on gcc 2.95.1 (on Solaris 2.6):
ÃÂ
#include <string>
#include <set>
#include <map>
void main (void)
{
ÃÂ ÃÂ ÃÂ map< string, set< string > > m;
}
ÃÂ
...I get this error message:
ÃÂ
>g++ nested.c
/usr/ccs/bin/as: "/var/tmp/cc2wJTOk.s", line 281: error: can't compute value of an expression involving an external symbol
ÃÂ
This only occurs when the map key is a string and the the set is a set of strings.
This is a bug,ÃÂ right?
ÃÂ
We used standard procedure to install the compiler (unmodified).ÃÂ
The "ii" file produced using the command "g++ -save-temps nested.c" is attached.
Please Advise,
Patrick Connolly
More information about the Gcc-bugs
mailing list