This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-971105 bugs
- To: "Schoder, Markus" <Markus dot Schoder at dresdner-bank dot de>, "'egcs at cygnus dot com'" <egcs at cygnus dot com>
- Subject: Re: egcs-971105 bugs
- From: "Michael A. Benzinger" <mbenz at sabre dot com>
- Date: Fri, 14 Nov 1997 07:34:56 -0600
>---
>struct A { char *p; void f(); };
>void A::f() { delete A::p; }
>---
>
You are correct. This should compile. Note that the
"A::" of "A::p" is not necessary. You could have
simply stated "delete p;". The "A::" is redundant
since you are inside a member function.
>---
>struct A { enum { a } *x; int f() { return a; } };
>---
>
>
>This is an obvious egcs bug.
>
You are correct. This is a bug.
>---
>struct A {};
>struct B { A A; };
>---
>
>I'm not completely sure about that one.
>
I tested this with Visual C++ and it compiled properly.
This is not a statement, however, that this syntax is
correct.
Mike Benzinger
-------------------------------------------------------------
Michael A. Benzinger
Sr. Manager
SABRE Technology Solutions Phone: +1 817-264-6820
1 E. Kirkwood Blvd. Fax: +1 817-264-6808
Southlake, TX 76092 e-mail: mbenz@sabre.com
U.S.A. bzinger@iName.com