http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45210
kargl at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
--- Comment #7 from dominiq at lps dot ens dot fr 2010-08-06 21:09 ---
Thanks to Thomas König, the mystery is sorted out: both p1.f90 and p2.f90
contain a subroutine ijk_to_i_j_k. In p1 the subroutine has the right dummy
arguments for the call, while the one in p2 has wrong ones. Due to
--- Comment #6 from dominiq at lps dot ens dot fr 2010-08-06 18:42 ---
> Your right, I assumed blindly that this code makes at least some sense (I
> modified it to remove the dependencies, but the main issue remains the same).
> However, it compiles with Pathscale 3.1 and SunStudio 12.1
--- Comment #5 from sliwa at blue dot cft dot edu dot pl 2010-08-06 18:07
---
Your right, I assumed blindly that this code makes at least some sense (I
modified it to remove the dependencies, but the main issue remains the same).
However, it compiles with Pathscale 3.1 and SunStudio 12
--- Comment #4 from dominiq at lps dot ens dot fr 2010-08-06 17:22 ---
Confirmed on 4.4.4 and 4.5.0, but the test compiles with trunk (with/without
-fno-whole-file). Now I see:
...
CALL ijk_to_i_j_k(i_j_k,i_j_k_fid,grid_size)
...
SUBROUTINE ijk_to_i_j_k(i,j,k,size,i_j_k)
The call has
--- Comment #3 from sliwa at blue dot cft dot edu dot pl 2010-08-06 16:49
---
To reproduce:
1. gfortran -c p1.f90 (no message)
2. gfortran -c p2.f90
p2.f90:66.25:
CALL ijk_to_i_j_k(i_j_k,i_j_k_fid,grid_size)
1
Error: Rank mismatch in argument 'j' at (1) (0
--- Comment #2 from sliwa at blue dot cft dot edu dot pl 2010-08-06 16:45
---
Created an attachment (id=21425)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21425&action=view)
second part of the test case
This file contains to routines. The error is reported in the first one, but
--- Comment #1 from sliwa at blue dot cft dot edu dot pl 2010-08-06 16:43
---
Created an attachment (id=21424)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21424&action=view)
p1.f90
first part of the test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45210