This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
971114 gone backwards
- To: egcs-bugs at cygnus dot com
- Subject: 971114 gone backwards
- From: dcb at pncl dot co dot uk (David C Binderman)
- Date: Sun, 23 Nov 1997 09:57:03 GMT
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++