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]
Other format: [Raw text]

Re: C++ FE stripping const qualifiers from function prototypes (bug or feature?)


On Thu, Mar 12, 2009 at 10:09, Michael Veksler
<mveksler@techunix.technion.ac.il> wrote:

> Which way the cleanup is going to be? Remove the "const" from
> the C FE or re-add the "const" to the ÂIL of the C++ ÂFE?

Remove the const in the C FE.  A const qualifier in a pass-by-value
argument does not really add any useful information.  It's different
if this was a pass-by-reference.


Diego.


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