Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

"Text exceeds right hand column allowed on line" warning with 132 characters

$
0
0

I have been getting these warnings for quite some time and quite a successive number of compiler versions now:

$ ifort -std08 -c example_ifort.f90
  example_ifort.f90(3): warning #5268: Extension to standard: The text exceeds right hand column allowed on the line.
  sdescl = 'hsedasak..=rhfaeu4ebsrrdlvek.arlhamts#tltnoari.aiktlwtil4eelkvararf.4.sthatnrioiaaahh1e,..nevtinned.ada.sneedmomreeotxt'
  ----------------------------------------------------------------------------------------------------------------------------------^

The compiler warns that the line exceeds the maximum length of 132 characters, even though the line is exactly 132 characters long. The complete example_ifort.f90 source is:

program example
  character :: str*(132)
  str = 'hsedasak..=rhfaeu4ebsrrdlvek.arlhamts#tltnoari.aiktlwtil4eelkvararf.4.sthatnrioiaaahh1e,..nevtinwned.agda.snededmomreeotxt'
end program example

This happens every now and then for lines that have exactly 132 characters, but definitely not for all such lines. The warning goes away when removing the -std08 flag. I'm using the Fortran compiler v15.0.2.164 for Linux. Is this a bug in the compiler, or am I missing something?


Viewing all articles
Browse latest Browse all 2746

Latest Images

Trending Articles



Latest Images

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