This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40011] Problems with -fwhole-file
- 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: 4 May 2009 17:54:58 -0000
- Subject: [Bug fortran/40011] Problems with -fwhole-file
- References: <bug-40011-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dominiq at lps dot ens dot fr 2009-05-04 17:54 -------
With thee patch in http://gcc.gnu.org/ml/fortran/2009-05/msg00056.html without
type cheating, all the ICEs in my tests are gone. It even fixes pr37744!-(it
may give a clue on how to fix it without -fwhole-file).
For the test arr_fun.f90, I now get:
arr_fun.f90:10.6:
res = test(2)
1
Error: The reference to function 'test' at (1) either needs an explicit
INTERFACE or the rank is incorrect
which seems right (without -fwhole-file I get a "bus error" at run time).
Test gcc/testsuite/gfortran.dg/hollerith.f90 and friends won't probably pass
regtesting:
call test (8h hello)
1
Error: Type mismatch in argument 'h' at (1); passed HOLLERITH to INTEGER(8)
I have to run the polyhedron tests and to regtest, so it is all for this time.
Thanks for the patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40011