PR c/25880 improve message of warning for discarding qualifiers

Manuel López-Ibáñez lopezibanez@gmail.com
Mon May 24 15:00:00 GMT 2010


On 24 May 2010 16:09, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
>
> Don't print the attribute as "const" in C++ -- that would be very confusing.

The suggestion is the oppossite: to print __attribute__((const)). If I
understand correctly, the "const" property of member-functions is not
a TYPE_QUALIFIER in the sense of GCC's internal representation, and
indeed, any function with the const TYPE_QUALIFIER has the
attribute((const)).

Is that ok with you?

Manuel.



More information about the Gcc-patches mailing list