rfg@paris.ics.uci.edu (Ronald Guilmette) (02/15/90)
// cfront 2.0 bug 900210_03
// Once cfront detects one case in which the expression supplied in a delete
// statement has a pointer-to-const type it will never again flag any
// similar errors within the rest of the program.
const char *s1;
const char *s2;
const char *s3;
struct A {
A ();
void member ();
~A ();
};
struct B {
B ();
~B ();
};
void A::member ()
{
delete s1; /* ERROR */
}
B::~B()
{
delete s2; /* ERROR - missed */
};
A::A ()
{
delete s3; /* ERROR - missed */
}
int main () { return 0; }