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 testsuite/32956] Compiling equiv_7_db.f90 gives an error with -fdefault-integer-8



------- Comment #1 from dominiq at lps dot ens dot fr  2007-08-01 15:10 -------
A similar problem occurs with gfortran.fortran-torture/execute/equiv_5.f which
hangs (does not stop, but no CPU time used). The following patch makes the test
pass:

[karma] f90/bug% diff
/opt/gcc/gcc-4.3-work/gcc/testsuite/gfortran.fortran-torture/execute/equiv_5.f
equiv_5_db.f
17,21c17,21
<       INTEGER SMALL(2)
<       INTEGER LARGE(2)
<       INTEGER RIGHT(2)
<       INTEGER DIVER(2)
<       INTEGER LOG10(2)
---
>       INTEGER(4) SMALL(2)
>       INTEGER(4) LARGE(2)
>       INTEGER(4) RIGHT(2)
>       INTEGER(4) DIVER(2)
>       INTEGER(4) LOG10(2)
212c212,213
<       INTEGER A, A1, B, C, D
---
>       INTEGER(4) A
>       INTEGER A1, B, C, D

The reason why it works is pretty obvious, but I don't have any idea on how
gfortran can detect the problem with the original test.


-- 


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


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