This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-971105 bugs


>---
>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]