home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,601 of 2,753   
   Thomas Koenig to Thomas Koenig   
   Re: what is defined, was for or against    
   13 Jan 22 11:17:13   
   
   From: tkoenig@netcologne.de   
      
   Thomas Koenig  schrieb:   
      
   > [I have used Fortran systems that initialized otherwise undefined   
   > data to a value that would trap, to help find use-before-set errors.   
   > -John]   
      
   That usually is still available, but optional.  An short example:   
      
   $ cat a.f90   
   program main   
     print *,a   
   end program main   
   $ gfortran -g -ffpe-trap=invalid -finit-real=snan a.f90   
   $ ./a.out   
      
   Program received signal SIGFPE: Floating-point exception - erroneous   
   arithmetic operation.   
      
   with a backtrace pointing to the offending line.   
      
   It does not necessarily work on COMMON blocks, though.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca