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

Tomas Kalibera <tomas.kalibera at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomas.kalibera at gmail dot com

--- Comment #2 from Tomas Kalibera <tomas.kalibera at gmail dot com> ---
My apologies if this is obvious, but please let me note this issue means that
one cannot print(f) a 64-bit integer without a compile-time warning with UCRT
on Windows. It would be a great help if this could somehow be fixed.

In the example below, lines (1) and (2) work without a warning with MSVCRT.
But, all three issue a warning with UCRT.

#include <inttypes.h>
#include <stdio.h>

int main(int argc, char **argv) {
  long long unsigned x = 112;

  printf("Hello %"PRIu64"\n", x); // 1
  printf("Hello %I64u\n", x);     // 2
  printf("Hello %llu\n", x);      // 3
  return 0;
}

Reply via email to