Am 14.01.2018 um 11:45 schrieb Janne Blomqvist:
I have tried to use %wp, but it didn’t work:

../../work/gcc/fortran/decl.c: In function 'void 
gfc_set_constant_character_len(gfc_charlen_t, gfc_expr*, gfc_charlen_t)':
../../work/gcc/fortran/decl.c:1567:5: error: unknown conversion type character 
'w' in format [-Werror=format=]
      "CHARACTER expression at %L is being truncated "
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gfortran diagnostics stuff, as it seems %wd is used in the middle end.
Anyway, that's stage1 stuff IMHO.

I'd suggest using %ld and casting the value to long int, or %lld and
casting to long long int, at least for the time being.

Regards

        Thomas

Reply via email to