[Bug fortran/77517] ICE in conv_intrinsic_move_alloc, at fortran/trans-intrinsic.c:9517
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Tue Nov 29 22:45:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #4 from Harald Anlauf <anlauf at gmx dot de> ---
There appears to be a difference between class(*) and e.g. type(*)
in the detection of clashes.
% cat pr77517-3.f90
class(*), allocatable :: a
type(*), allocatable :: c
contains
subroutine a
end
subroutine c
end
end
% gfc-trunk -c pr77517-3.f90
pr77517-3.f90:6:14:
subroutine c
1
Error: SUBROUTINE attribute conflicts with ALLOCATABLE attribute in 'c' at (1)
pr77517-3.f90:1:28:
class(*), allocatable :: a
1
pr77517-3.f90:8:3:
end
2
Error: Two main PROGRAMs at (1) and (2)
Also try commenting out one of the declarations.
More information about the Gcc-bugs
mailing list