971114 gone backwards
David C Binderman
dcb@pncl.co.uk
Sun Nov 23 01:58:00 GMT 1997
Hello there,
egcs-971114 on a Linux-i586 box gets internal compiler error for the
following code.
g++ 2.7.2.1 & some of the earlier egcs-97* are ok with it.
typedef unsigned int size_t;
class A {
public:
void operator delete(void*, size_t);
void* operator new(size_t);
};
class B : public A {
friend class D;
B();
unsigned counter;
};
class D {
int ins( B*&);
};
int
D::ins( B*& tempN)
{
unsigned i;
if (i == 10) {
}
else {
}
tempN = new B();
tempN->counter = 20;
return 0;
}
Regards
David Binderman MSc BSc +44 1293 534 847 dcb_AVOID_JUNK_MAIL@pncl.co.uk
There is no substitute for skill, taste and experience when programming
- Dr Stroustrup, inventor of C++
More information about the Gcc-bugs
mailing list