This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/32956] Compiling equiv_7_db.f90 gives an error with -fdefault-integer-8
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2007 15:10:54 -0000
- Subject: [Bug testsuite/32956] Compiling equiv_7_db.f90 gives an error with -fdefault-integer-8
- References: <bug-32956-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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