This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug report
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: bug report
- From: "Larocca, Glen" <Glen dot Larocca at PSS dot Boeing dot com>
- Date: Fri, 24 Mar 2000 14:53:32 -0800
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