GCC accepts dynamically-sized array in sizeof with -std=c89
Igor Bukanov
igor@mir2.org
Sat Apr 19 09:33:00 GMT 2008
On 18/04/2008, Jim Wilson <wilson@tuliptree.org> wrote:
> Adding -pedantic does generate the warning. Perhaps you expected a warning
> without -pedantic? If you read the docs carefully, you will see that
> -std=c89 enables all features of that standard, but does not disable GNU
> extensions to that standard. You need -pedantic for that.
You are right, I have misted -pedantic and with -pedantic-errors the
example does generated the error.
Regards, Igor
More information about the Gcc-help
mailing list