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

            Bug ID: 122926
           Summary: Build failure for Algol68 on i686-linux
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: algol68
          Assignee: algol68 at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

I'm seeing
../../gcc/algol68/a68-low-multiples.cc:636:31: error: format ‘%ld’ expects
argument of type ‘long int’, but argument 2 has type ‘size_t’ {aka ‘unsigned
int’} [-Werror=format=]
build failure on i686-linux.

Will test
--- gcc/algol68/a68-low-multiples.cc.jj 2025-11-30 21:49:44.136503080 +0100
+++ gcc/algol68/a68-low-multiples.cc    2025-12-01 00:34:18.147460525 +0100
@@ -633,7 +633,7 @@ copy_multiple_dimension_elems (size_t di
   tree element_type = TREE_TYPE (element_pointer_type);
   tree upb = a68_multiple_upper_bound (from, size_int (dim));

-  char *name = xasprintf ("r%ld%%", dim);
+  char *name = xasprintf ("r" HOST_SIZE_T_PRINT_DEC "%%", (fmt_size_t) dim);
   indexes[dim] = a68_lower_tmpvar (name, ssizetype,
                                   a68_multiple_lower_bound (from,
                                                             size_int (dim)));

for that momentarily.

Reply via email to