This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ frontend bug involving pointers to arrays
- From: Jason Merrill <jason at redhat dot com>
- To: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- Cc: gcc at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Mon, 21 Jul 2003 18:43:14 -0400
- Subject: Re: C++ frontend bug involving pointers to arrays
- References: <200307211514.RAA04279@faui11.informatik.uni-erlangen.de>
On Mon, 21 Jul 2003 17:14:50 +0200 (MET DST), Ulrich Weigand <weigand@i1.informatik.uni-erlangen.de> wrote:
> Mark Mitchell wrote:
>
>> I think Jason wrote that code, so I've copied him. It should clearly
>> apply only if the member itself is an array.
Agreed. Interestingly, the C frontend has the same bug, it just doesn't
hurt because C is more lenient about pointer conversions.
>> As for why this is enabled by default, I have no idea. I agree that it
>> should probably only be enabled with a -fms-extensions flag.
This is the same as the C99 flexible array extension; I'll correct the
comment.
Jason