[C++ Patch] PR 32489

Paolo Carlini paolo.carlini@oracle.com
Tue Sep 27 12:39:00 GMT 2011


Hi,

submitter asks us to be more accurate in some error messages about 
naming 'struct' vs 'class'.

Turns out - IMHO the issue is a bit nitpicking - that we do have in 
place machinery for this, already used by cp_parser_class_head, which 
sets CLASSTYPE_DECLARED_CLASS appropriately. I'm simply doing the same 
in cp_parser_elaborated_type_specifier too, thus set the latter just 
before calling cp_parser_check_class_key.

Tested x86_64-linux. Ok for mainline?

Thanks,
Paolo.

////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_31489
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110927/2061c35a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_31489
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110927/2061c35a/attachment-0001.ksh>


More information about the Gcc-patches mailing list