gcc violates const-ness of variable?
    Richard Tobin 
    richard at inf.ed.ac.uk
       
    Thu Dec  2 03:27:27 PST 2004
    
    
  
> IIRC "const" does not exist in *standardized* C...
No, it exists in both C89 and C99.  But the error is in your program,
not the compiler.  "const" in C is a promise that you do not change
the value, and you break that promise.
It may be different in C++, I don't know.
For definitive answers, try the newsgroups comp.lang.c and comp.lang.c++
-- Richard
    
    
More information about the freebsd-questions
mailing list