pre-1.1/template prob
Ralf Corsepius
corsepiu@faw.uni-ulm.de
Wed Sep 2 01:36:00 GMT 1998
Hi,
The C++-fragment below (excerpt of larger C++ application header file)
causes a signal 11 core dump with the pre-egcs-1.1 snapshot under
i686-linux-pc-gnulibc1:
------------------------
#include <string>
#include <map>
template <class O>
class keytable_mapped_type
{
public :
void (O::*read_func)(istream& );
};
template <class O>
class keytable_t
: public map<string,keytable_mapped_type<O> >
{
public :
struct entry_t {
char * key ;
mapped_type const cvt ;
};
keytable_t() : map() {} ;
};
--------------------------
After removing "struct entry_t" from keytable_t, egcs/gcc doesn't dump
core anymore.
Ralf
--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de FAX: +49/731/501-999
http://www.faw.uni-ulm.de
More information about the Gcc-bugs
mailing list