ICE passing coarrays to subroutine
Alessandro Fanfarillo
fanfarillo.gcc@gmail.com
Sat Jan 24 12:31:00 GMT 2015
Sorry about that, here is the ICE:
$ gfortran -fcoarray=lib -c cg.f
cg.f:1464:22:
> v, iv(1), iv(n+1), nnza )
1
Warning: Type mismatch in argument ‘mark’ at (1); passed INTEGER(4) to
LOGICAL(4)
f951: internal compiler error: Segmentation fault
0xb6c6ff crash_signal
../../gcc/toplev.c:383
0x5ea56c gfc_zero_size_array
../../gcc/fortran/arith.c:1637
0x5ea56c reduce_binary0
../../gcc/fortran/arith.c:1651
0x5eb460 eval_intrinsic_f3
../../gcc/fortran/arith.c:1700
0x622e63 check_dummy_characteristics
../../gcc/fortran/interface.c:1212
0x622807 check_dummy_characteristics
../../gcc/fortran/interface.c:1058
0x622807 gfc_compare_interfaces(gfc_symbol*, gfc_symbol*, char const*,
int, int, char*, int, char const*, char const*)
../../gcc/fortran/interface.c:1511
0x67d5ad resolve_global_procedure
../../gcc/fortran/resolve.c:2456
0x67d8b7 resolve_call
../../gcc/fortran/resolve.c:3394
0x67af88 gfc_resolve_code(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:10190
0x67a56b gfc_resolve_blocks(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:9186
0x67a812 gfc_resolve_code(gfc_code*, gfc_namespace*)
../../gcc/fortran/resolve.c:10013
0x67d182 resolve_codes
../../gcc/fortran/resolve.c:14974
0x67d262 gfc_resolve
../../gcc/fortran/resolve.c:15002
0x668f7a resolve_all_program_units
../../gcc/fortran/parse.c:5280
0x668f7a gfc_parse_file()
../../gcc/fortran/parse.c:5523
0x6a8ad5 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:228
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
2015-01-24 13:09 GMT+01:00 Tobias Burnus <burnus@net-b.de>:
> Dear Alessandro,
>
> Alessandro Fanfarillo wrote:
>>
>> I'm trying to run the attached code taken from the coarray version of
>> the NASA Parallel Benchmark provided by the High Performance Computing
>> Tools group at University of Houston.
>>
>> The problem is related with the conj_grad subroutine which has some
>> coarray arguments.
>
>
> How does it fail? ICE doesn't tell much - and it includes several files (and
> possibly modules) and, hence, doesn't compile here.
>
> Tobias
More information about the Fortran
mailing list