diff options
| author | Jason Merrill <jason@redhat.com> | 2021-11-14 23:18:19 -0500 |
|---|---|---|
| committer | Jason Merrill <jason@redhat.com> | 2021-11-15 02:52:36 -0500 |
| commit | 2317082c151e5580e0bfe5fcfbd0e9d0172446c9 (patch) | |
| tree | 69059807d9ebc4345c55559282dec9b7519db46f /libcpp/errors.c | |
| parent | 37326651b439bac55d96fb5a43f4daf25e401eda (diff) | |
| download | gcc-2317082c151e5580e0bfe5fcfbd0e9d0172446c9.zip gcc-2317082c151e5580e0bfe5fcfbd0e9d0172446c9.tar.gz gcc-2317082c151e5580e0bfe5fcfbd0e9d0172446c9.tar.bz2 | |
c++: location of lambda object and conversion call
Two things that had poor location info: we weren't giving the TARGET_EXPR
for a lambda object any location, and the call to a conversion function was
getting whatever input_location happened to be.
gcc/cp/ChangeLog:
* call.c (perform_implicit_conversion_flags): Use the location of
the argument.
* lambda.c (build_lambda_object): Set location on the TARGET_EXPR.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/lambda/lambda-switch.C: Adjust expected location.
Diffstat (limited to 'libcpp/errors.c')
0 files changed, 0 insertions, 0 deletions
