This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: An Ansi-C question or... Is egcs/gcc Ansi compliant?


> Just playing with const:
[...]
> Why ignore egcs/gcc the const keyword such way?

The keyword is not ignored: you get a warning. This is ANSI compliant;
the compiler is required to diagnose the error, it may still chose to
compile the program (as an extension).

> Is there anyway to get a real const with egcs?

If you absolutely want compilation to fail, you should pass the flag
-pedantic-errors

> PS: I don't know this message is really on-topic here.

This was a good choice. Since you've suspected a bug,
egcs-bugs@cygnus.com would have been even better.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]