This is the mail archive of the gcc-patches@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: Warning patch installed


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:

|  > From: Gabriel Dos Reis <gdr@codesourcery.com>
|  > 
|  > A client of a const-pointer shouldn't (logically) be allowed to free() 
|  > the storage the const-pointer is pointing to, without explicitly
|  > subverting the type system.  He is expected to just be inspecting the
|  > pointed object.
|  > -- Gaby
| 
| So are you simply against having free itself silently accept const
| pointers or are you also against a freeconst/xfree replacement?

The former.

I'm for freeconst (or whatever it gets called).

-- Gaby
CodeSourcery, LLC		http://www.codesourcery.com


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