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:51, Gabriel Dos Reis <dosreis@gmail.com> wrote:
>> $ cat f.h
>> typedef const char * (*Callback)(void *, const char *, const int);
>
> The 'const' on third argument is superfluous.
>
> (Similar thing happens if you put 'const' on a scalar type on the
> return type).
Thanks. I've arranged to have these removed when we go into gimple.
Diego.