c99 VLA semantics

Mark Mitchell mark@codesourcery.com
Sat Jun 17 01:13:00 GMT 2006


Joseph S. Myers wrote:
> On Fri, 16 Jun 2006, Mark Mitchell wrote:
> 
>> What regression is your patch fixing?
> 
> I haven't tested the patch and it was submitted without testcases, but it 
> ought to fix
> 
> int a;
> struct s { void (*f)(int (*)[a]); };
> 
> which is wrongly rejected with -std=c99 -pedantic-errors but wasn't 
> previously rejected.

OK.

Mike, please resubmit the patch, with test cases, and with analysis of
why the other uses of the function do not need to change.  Please
mention that this is a regression when you resubmit.  If you CC: me, I
will review.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list