This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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.