Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Run-time error due to narrow format

$
0
0

Hello,

I ran into a problem with format strings like "I4.4". Unfortunately I could not reproduce it in a small program and the version of the compiler I am currently using is fairly old, so it may already have been solved. I thought I'd report it anyway.

Here are the circumstances: the program prints a _negative_ number to the screen using a format (edit descriptor) "I4.4". The result is of course "****", but it crashes on the next statement - at least according to the debugger. When I change the format width to 6, all is okay.

Details: Windows 7, Intel Fortran compiler 12.1, 64-bits.

As I already remarked, I could not reproduce it in a small program, so I cannot exclude that it is caused by something else in an unrelated part of the program. But given that the solution was to increase the format width, it seems related directly to the formatting of numbers that do not fit.

Regards,

Arjen

 


Viewing all articles
Browse latest Browse all 3270


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>