This is the mail archive of the gcc@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: [lambda] Latest experimental polymorphic lambda patches


On Tue, Aug 11, 2009 at 7:05 AM, Jason Merrill <jason@redhat.com> wrote:
> A few comments:
>
>> /* XXX: Any way to get current location? */
>
> input_location

Just a late comment: using input_location is generally not a good
idea.  Every token in the parser has a location.  That should be the
source of all location information.  Using input_location generally
gives you the wrong column and sometimes even gives you the wrong
line.  We should eventually eliminate it.

Ian


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