http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49011
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-05-16 10:15:03 UTC --- With -m64: _gfortran_runtime_error_at (&"At line 3 of file foo.f90"[1]{lb: 1 sz: 1}, &"Argument NCOPIES of REPEAT intrinsic is negative (its value is %lld)"[1]{lb: 1 sz: 1}, (integer(kind=8)) D.1547); With -m32: _gfortran_runtime_error_at (&"At line 3 of file foo.f90"[1]{lb: 1 sz: 1}, &"Argument NCOPIES of REPEAT intrinsic is negative (its value is %lld)"[1]{lb: 1 sz: 1}, (<unnamed-signed:32>) D.1501); Thus, in both cases the argument value is wrongly cast; cf. POSIX's printf(3): ll (ell-ell) Specifies that a following d , i , o , u , x , or X conversion specifier applies to a long long or unsigned long long argument; or that a following n conversion specifier applies to a pointer to a long long argument.