Bug#558728: gfortran: Unable to give initial value 2**0.5 to a real varable
Package: gfortran
Version: 4:4.3.4-1
Severity: normal
The following fortran 95 code cannot be compiled:
PROGRAM myProg
REAL :: sqrt2 = 2**0.5
PRINT*, sqrt2
END PROGRAM myProg
This is the commandline output:
$ gfortran-4.3 myProg.f95
myProg.f95: In function ‘myprog’:
myProg.f95:1: internal compiler error: in gfc_conv_constant, at fortran/trans-const.c:296
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
$ gfortran-4.4 myProg.f95
myProg.f95: In function ‘myprog’:
myProg.f95:1: internal compiler error: in gfc_conv_constant, at fortran/trans-const.c:352
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gfortran depends on:
ii cpp 4:4.3.4-1 The GNU C preprocessor (cpp)
ii gcc 4:4.3.4-1 The GNU C compiler
ii gfortran-4.3 4.3.4-6 The GNU Fortran 95 compiler
gfortran recommends no packages.
Versions of packages gfortran suggests:
ii gfortran-doc 5:2 documentation for the GNU Fortran
pn gfortran-multilib <none> (no description available)
-- no debconf information
Reply to: