[PATCH] PR c++/77777 improve location for diagnostic

Jason Merrill jason@redhat.com
Wed May 30 22:42:00 GMT 2018


OK.

On Wed, May 30, 2018 at 4:28 PM, Jonathan Wakely <jwakely@redhat.com> wrote:
> 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.
>
>
> Tested powerpc64le-linux, OK for trunk?
>
>



More information about the Gcc-patches mailing list