This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ RFC/Patch] PR 34938
- From: Jason Merrill <jason at redhat dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>, Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Aug 2014 15:56:22 -0400
- Subject: Re: [C++ RFC/Patch] PR 34938
- Authentication-results: sourceware.org; auth=none
- References: <53F78398 dot 2000908 at oracle dot com> <53F7894C dot 8010803 at redhat dot com> <53F797AD dot 5070309 at oracle dot com> <53F79990 dot 5040004 at redhat dot com> <53F79AF8 dot 3020004 at oracle dot com> <CAESRpQC2GCs3j41zXkVbaa+R1mK81CPK4U8FEzx7Jq=Hs7z79Q at mail dot gmail dot com>
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