This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/33609] New: ICE on arithmetic overflow


The following code:

print *, real(huge(1.0_8),16)
end

gives an ICE on gcc version 4.3.0 20071001 (experimental) (GCC):

print *, real(huge(1.0_8),16)
             1
Error: Arithmetic overflow converting REAL(8) to REAL(16) at (1). This check
can be disabled with the option -fno-range-check
ice_huge_16.f90:0: internal compiler error: Bus error

I see the same on gcc version 4.2.1, but the error is only:

Error: Arithmetic overflow converting REAL(8) to REAL(16) at (1)


-- 
           Summary: ICE on arithmetic overflow
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33609


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