snapshot 19990608 libstdc++ check error

Eric Raskin ehr@listworks.com
Wed Jun 9 07:42:00 GMT 1999


config: i586-dg-dgux4.20MU03

This is a new problem with the 19990608 snapshot -- all the ones since 19990502 worked before this.

-------------------

/lw/downloads/egcs-19990608-obj/gcc/xgcc -B/lw/downloads/egcs-19990608-obj/gcc/ -B/usr/local/egcs/i586-dg-dguxR4.20MU03/bin/ -c -g -O2 -fno-implicit-templates -I../../../egcs-19990608/libstdc++ -I../../../egcs-19990608/libstdc++/stl -I../libio -I../../../egcs-19990608/libstdc++/../libio -nostdinc++  ../../../egcs-19990608/libstdc++/valarray.cc
In file included from /lw/downloads/egcs-19990608-obj/gcc/include/new:9,
                 from /lw/downloads/egcs-19990608-obj/gcc/include/new.h:6,
                 from ../../../egcs-19990608/libstdc++/stl/stl_algobase.h:52,
                 from ../../../egcs-19990608/libstdc++/stl/algorithm:30,
                 from ../../../egcs-19990608/libstdc++/std/std_valarray.h:41,
                 from ../../../egcs-19990608/libstdc++/valarray.cc:1:
/lw/downloads/egcs-19990608-obj/gcc/include/exception:13: redefinition of `struct exception'
/usr/include/math.h:282: previous definition here
make[1]: *** [valarray.o] Error 1
make[1]: Leaving directory `/lw/downloads/egcs-19990608-obj/i586-dg-dguxR4.20MU03/libstdc++'

------------------------

math.h declares a struct exception {} like this:

struct exception {
        int type;
        char *name;
        double arg1;
        double arg2;
        double retval;
};

The file exception declares a class exception within a namespace std like this:

extern "C++" {

namespace std {

class exception {
public:
  exception () { }
  virtual ~exception () { }
  virtual const char* what () const;
};
	.
	.
	.

What broke?  Isn't the 'namespace std' supposed to get around this?  Did I turn something off by accident?

------------------------------------------------------------------------
Eric H. Raskin                            Voice: 914-769-7100 x321
President, CSC Division                   Fax:    914-769-8070
The Listworks Corp.                       E-Mail: ehr@listworks.com
1 Campus Drive
Pleasantville, NY 10570



More information about the Gcc mailing list