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/45305] Array-valued calles to elementals are not simplified



------- Comment #3 from dominiq at lps dot ens dot fr  2010-08-20 15:24 -------
With the patch in comment #2, some error messages are repeated several times:
for instance gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90 gives

/opt/gcc/work/gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90:8.26:

   integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "Arithmetic overflow" }
                          1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This
check can be disabled with the option -fno-range-check
/opt/gcc/work/gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90:8.26:

   integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "Arithmetic overflow" }
                          1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This
check can be disabled with the option -fno-range-check
/opt/gcc/work/gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90:8.33:

   integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "Arithmetic overflow" }
                                 1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This
check can be disabled with the option -fno-range-check
/opt/gcc/work/gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90:8.26:

   integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "Arithmetic overflow" }
                          1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This
check can be disabled with the option -fno-range-check

instead of

/opt/gcc/work/gcc/testsuite/gfortran.dg/arithmetic_overflow_1.f90:8.26:

   integer(1) :: a(2) = (/ Z'FF', Z'FF' /) ! { dg-error "Arithmetic overflow" }
                          1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(1) at (1). This
check can be disabled with the option -fno-range-check


-- 


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


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