Bug Report
Steven M. Gallo
smgallo@numenor.csgeeks.org
Wed Sep 30 21:27:00 GMT 1998
Hello,
I received the following error while compiling sample code that follows.
Steve Gallo
(numenor)templates :>g++ test2.cc
test2.cc: In method `list::list()':
test2.cc:29: Internal compiler error 40.
test2.cc:29: Please submit a full bug report to `egcs-bugs@cygnus.com'.
---------- Sample program ----------
// Example program to reproduce compiler error in egcs
//
// Steven M. Gallo
// 9/30/98
//
// smgallo@numenor.csgeeks.org
// gallo@calspan.com
template <class T>
void
defaultDelete(void *del)
{
T **d = (T **) del;
delete del;
*d = NULL;
} // defaultDelete()
typedef void (*func_delete) (void *);
class list
{
private:
func_delete deleteFunc_;
public:
list() { deleteFunc_ = defaultDelete; }
};
int
main()
{
More information about the Gcc-bugs
mailing list