c99 VLA semantics

Joseph S. Myers joseph@codesourcery.com
Sat Jun 17 00:44:00 GMT 2006


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.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list