Assignee: unassigned at gcc dot gnu.org
Reporter: davidgkinniburgh at yahoo dot co.uk
Target Milestone: ---
Please can someone check this out? Compiles with ifort 19.0.5.281. Thanks.
program caf_alloc_gfortran_ice
! coarray program
! gfortran -c -Wall -fcoarray
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70673
--- Comment #4 from David Kinniburgh ---
It seems the problem usually arises when there is reassignment in one line, eg
character(:), allocatable: s, t
s = s(2:) ! or even s = s
whereas forcing the temporary
t = s(2:)
s = t
seems to work. But
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70673
--- Comment #2 from David Kinniburgh ---
Ah, maybe I reduced this too far as a1 and a2 are obviously uninitialized...
Is this better - it also produces an ICE?
module m
contains
subroutine s(in)
character(*), intent(in) :: in
character(:), al
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70673
--- Comment #1 from David Kinniburgh ---
Ah, maybe I reduced this too far as a1 and a2 are obviously uninitialized, but
still...
: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: davidgkinniburgh at yahoo dot co.uk
Target Milestone: ---
module m
contains
subroutine s
character(:), allocatable :: a1
a1 = a1
return
contains
integer function f1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67977
David Kinniburgh changed:
What|Removed |Added
CC||davidgkinniburgh at yahoo dot
co.u
: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: davidgkinniburgh at yahoo dot co.uk
CHARACTER (LEN=:), ALLOCATABLE :: temp(:), s(:)
ALLOCATE(CHARACTER(LEN=2) :: s(2))
s = 'ab'
temp = s
print *, "temp = ", temp
end
>gfortran -c -Wall testgcc5
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: davidgkinniburgh at yahoo dot co.uk
CHARACTER(:), ALLOCATABLE :: s
ALLOCATE (character(32) :: s)
s(1:32) = 'string'
print *, 'Length
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51652
--- Comment #3 from David Kinniburgh
2011-12-22 16:21:09 UTC ---
Sorry, I wasn't up-to-date on the long history of allocatable scalars and dt
components, and hadn't checked the documentation in detail recently. Anyway
thanks for all your work on
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51652
Bug #: 51652
Summary: [F03] ICE with allocatable scalars
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
10 matches
Mail list logo