bug report

Larocca, Glen Glen.Larocca@PSS.Boeing.com
Fri Mar 24 14:53:00 GMT 2000


running gcc version 2.91.66 
on SunOS version 5.6 
compiling with no options

the following program:

#include <list>
#include <map>
#include <string>

typedef map<string,double> GG;

void main()
{
	GG x;
	list< GG * > y ;

	y.push_back(&x);
}

produces the following unpleasing error message:

make temp.o
g++ -I /usr/users/larocca/Necap/Units/  -c temp.cpp
/usr/ccs/bin/as: "/var/tmp/cccdblxf.s", line 1173: error: can't compute value of an expression involving an external symbol

I fixed the problem by using char * rather than string

My main complaint is the error message

glen


More information about the Gcc-bugs mailing list