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

Re: [C++ RFC/Patch] PR 34938


On 08/22/2014 03:47 PM, Manuel López-Ibáñez wrote:
Are there actually cases where the qualifiers mean different things
for function_type and method_type?

If a FUNCTION_TYPE is a typedef or template argument, TYPE_READONLY and TYPE_VOLATILE are the function-cv-quals. A plain METHOD_TYPE cannot appear in those contexts.

In all other contexts, TYPE_READONLY and TYPE_VOLATILE are attributes const and noreturn.

I've tried to move the function-cv-quals out of those flags a couple of times and given up.

Jason


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