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: Adjust locations for RECORD_TYPEs


On 11/26/2009 06:55 AM, Jason Merrill wrote:
It would be better to use type_start_token->location in cp_parser_class_head rather than store input_location.

You are right. This changes behavior such that anonymous RECORD_TYPE location points at { or class name when that is available.


2009-11-30 Taras Glek <taras@mozilla.com>

    * parser.c (cp_parser_class_specifier): Set class location to that
    of IDENTIFIER_NODE instead of '{'.

2009-11-30 Taras Glek <taras@mozilla.com>

* semantics.c (begin_class_definition): Do not overide locations with less precise ones.


Attachment: svn.diff
Description: Text document


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