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]

[C++ Patch] Improve check_var_type locations


Hi,

by adding a location_t parameter we can improve the locations of the error messages. At the moment the locations of the first and third message end up being input_location anyway, but we can imagine improving those later (this a much more general issue, the locations we use when unnamed entities are involved, see for example all the 'if (name)' in grokdeclarator and elsewhere: input_location is very rarely the best location).

Testex x86_64-linux.

Thanks, Paolo.

/////////////////////////////////

Attachment: CL_locs_44
Description: Text document

Attachment: patch_locs_44
Description: Text document


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