https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116387

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:0f8b11968472ff12674d67fd856610646b373bd0

commit r15-2939-g0f8b11968472ff12674d67fd856610646b373bd0
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Aug 15 22:50:07 2024 +0200

    fortran: Fix bootstrap in resolve.cc [PR116387]

    The r15-2934 change broke bootstrap:
    ../../gcc/fortran/resolve.cc: In function âbool
resolve_operator(gfc_expr*)â:
    ../../gcc/fortran/resolve.cc:4649:22: error: too many arguments for format
[-Werror=format-extra-args]
     4649 |           gfc_error ("Inconsistent coranks for operator at %%L and
%%L",
          |                     
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The following patch fixes that by using %L rather than %%L, the call has 2
    location arguments.

    2024-08-15  Jakub Jelinek  <ja...@redhat.com>

            PR bootstrap/116387
            * resolve.cc (resolve_operator): Use %L rather than %%L in format
            string.

Reply via email to