This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: An Ansi-C question or... Is egcs/gcc Ansi compliant?
- To: esoft at arrakis dot es
- Subject: Re: An Ansi-C question or... Is egcs/gcc Ansi compliant?
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 31 Dec 1998 11:17:59 +0100
- CC: egcs at cygnus dot com
- References: <368af92a.181964@smtp.arrakis.es>
> 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