[Bug fortran/49011] Wrong repeat count in error message for REPEAT intrinsic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49011 Francois-Xavier Coudert changed: What|Removed |Added Status|NEW |RESOLVED CC||fxcoudert at gcc dot gnu.org Resolution|--- |FIXED Target Milestone|--- |4.7.0 --- Comment #4 from Francois-Xavier Coudert --- (In reply to Bud Davis from comment #3) > 32 bit, 2.6 kernel, revision 183881, message is correct. > Should this be closed or is it an X86-64 thing ? This was fixed at some point, because current code is correct: gfc_trans_runtime_check (true, false, cond, &se->pre, &expr->where, "Argument NCOPIES of REPEAT intrinsic is negative " "(its value is %ld)", fold_convert (long_integer_type_node, ncopies)); Compiling with my old gfortran versions indicates it was fixed in 4.7.0, failing in 4.5.0
[Bug fortran/49011] Wrong repeat count in error message for REPEAT intrinsic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49011 Bud Davis changed: What|Removed |Added CC||bdavis at gcc dot gnu.org --- Comment #3 from Bud Davis 2012-02-03 22:31:23 UTC --- 32 bit, 2.6 kernel, revision 183881, message is correct. Should this be closed or is it an X86-64 thing ? --bud davis
[Bug fortran/49011] Wrong repeat count in error message for REPEAT intrinsic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49011 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus 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}, () 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.
[Bug fortran/49011] Wrong repeat count in error message for REPEAT intrinsic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49011 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2011.05.16 09:22:14 Ever Confirmed|0 |1 --- Comment #1 from Dominique d'Humieres 2011-05-16 09:22:14 UTC --- On x86_64-apple-darwin10, the test returns Fortran runtime error: Argument NCOPIES of REPEAT intrinsic is negative (its value is -1) with -m64 (default). The value returned with -m32 depends on the version: 72057598332895231 for 4.4.4 and 4.5.2, 118064355999743 for 4.6.0 (r169227), and 4294967295 for trunk (r173786).