title: Floating point exception when reading real values from an input file
body: <p>I try to read a float value from an input file in <code>Fortran</code>.</p>
  
  <p>To do so I use this code :</p>
  
  <pre><code>...
  INTEGER            :: nf
  REAL               :: re
  
  OPEN(newunit=nf, file='toto.txt')
  
  READ(unit=nf, fmt=*) re
  ...
  </code></pre>
  
  <p>with toto.txt a text file containing my real value : </p>
  
  <pre><code>10.1001 ! this value is supposed to be read by the Fortran program 
  </code></pre>
  
  <p>If I compile and execute like this, everything works well.</p>
  
  <p>But I get some trouble when I compile and execute with <code>fpe</code> option.
  I have a error at the readding line that looks like:</p>
  
  <pre><code>Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation
  
  Backtrace for this error
  #0  0xfffffff
  #1  0xfffffff
  ...
  </code></pre>
  
  <p>I use a <code>gfortran</code> command : <code>gfortran -g1 -c -fbacktrace -ffpe-trap=invalid,zero,overflow,underflow,inexact,denormal -Wall -fcheck=all my_prog.f90</code></p>
  
  <p>I assume my read action is not proper. 
  So is that error normal? Is there a proper way to read real values?</p>