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]

bug report


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

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