C++ frontend bug involving pointers to arrays

Jason Merrill jason@redhat.com
Mon Jul 21 23:19:00 GMT 2003


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



More information about the Gcc mailing list