This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: arithmetic underflow


Same error with -Wno-underflow switch.

--

Sincerely yours,
            Pasa Guglielmo


--------------

 guglielmo.pasa@bluewin.ch      ¦  tel. :  +41 (0)24 485 50 40 ¦

 mailing : Pasa Guglielmo       ¦  fax  :  +41 (0)24 485 50 44 ¦
           Rte des Cases 17A    ¦                              ¦ 
           CH-1890 St-Maurice   ¦  prof.: physicist,teacher    ¦
           (Switzerland)        ¦         & PhD Student        ¦ 


Ph.D.Student at:

Ecole Polytechnique Fédérale de Lausanne (EPFL)
Laboratory of Physics of Nanostructures
CH-1015 Lausanne, Switzerland
http://lpn.epfl.ch

-----Message d'origine-----
De?: fortran-owner@gcc.gnu.org [mailto:fortran-owner@gcc.gnu.org] De la part
de Paul Brook
Envoyé?: vendredi, 25. mars 2005 19:02
À?: fortran@gcc.gnu.org
Cc?: Guglielmo Pasa
Objet?: Re: arithmetic underflow

On Friday 25 March 2005 17:42, Guglielmo Pasa wrote:
> In compiling the code below I get arithmetic underflow.
> The code compiles fine with other compilers but gfortran doesn't like it.
> I run the build with
>
> gfc -M ../mod_gfc -d8 units.f90
>
> but I get
>
> In file units.f90:17
>
>   REAL,PARAMETER :: hb2over2m  = (hbar/(2*emass))*hbar ! hb^2/2m_e en : J
> m^2
>                                  1
> Error: Arithmetic underflow at (1)
>
> I'm running gfortran binaries built for cygwin (the last binaries provided
> kindly by Paul Thomas (Thanks by the way ;o) )

I can't reproduce this on i686-linux. This error was turned into a warning 
quite some time ago, and can be disabled with -Wno-underflow.

Paul



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]