diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-05-31 00:13:48 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-05-31 00:13:48 +0100 |
commit | d72a3672c5450f76ca056b0bcc45b8dd55965802 (patch) | |
tree | 6b69441661652d6e8a63c134717bbe9eaf3f1894 /libgo | |
parent | b67b9225f72e4b2d58e535c78dbeff83f94c8f66 (diff) | |
download | gcc-d72a3672c5450f76ca056b0bcc45b8dd55965802.zip gcc-d72a3672c5450f76ca056b0bcc45b8dd55965802.tar.gz gcc-d72a3672c5450f76ca056b0bcc45b8dd55965802.tar.bz2 |
PR c++/77777 improve location for diagnostic
Pass in the location of the invalid expression, not the next input
location (which might be a comma or closing parenthesis on a different
line).
gcc/cp:
PR c++/77777
* call.c (resolve_args): Use location of expression, not current input
location.
gcc/testsuite:
PR c++/77777
* g++.dg/diagnostic/pr77777.C: New test.
From-SVN: r260979
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions