]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/77777 improve location for diagnostic
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2018 23:13:48 +0000 (23:13 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2018 23:13:48 +0000 (23:13 +0000)
commit42806913509f8e799202b634ee023ce668f68297
tree6b69441661652d6e8a63c134717bbe9eaf3f1894
parent768cc20ebfeb92b2f765eb7365e60bc63be32aac
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260979 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr77777.C [new file with mode: 0644]