This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: c/9025: GNU C compiler does not honour 'const' type qualifier


On 20 Dec 2002 ehrhardt@mathematik.uni-ulm.de wrote:

>     Confirmed. All versions that I checked issue a warning for the assignment
>     to a const value but this should be an error at least with std=c99 because

No, it should be (and is) an error at least with -pedantic-errors, which
is what you need to get an error for everything the standard requires a
diagnostic for.  However, I don't see any point in this not being a hard
error unconditionally and it's one case that is frequently requested to be
such.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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