Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcesari69 at gmail dot com
Created attachment 30655
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30655&action=edit
Fortran source for reproducing ICE
Hello, the attached sim
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcesari69 at gmail dot com
Target Milestone: ---
The following simple code:
PROGRAM test_o_char
PRINT*,mylen('c')+mylen('c ')
CONTAINS
FUNCTION mylen(c)
CHARACTER(len=*),INTENT(in) :: c
IN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78021
--- Comment #8 from Davide Cesari ---
Thanks for the quick fix!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58157
--- Comment #3 from Davide Cesari ---
Update: I tested with the latest version available on a fresh Fedora24, gcc
version 6.1.1 20160621, and the bug is still the same:
internal compiler error: Segmentation fault
Davide
: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcesari69 at gmail dot com
Target Milestone: ---
Created attachment 55961
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55961&
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111521
--- Comment #1 from Davide Cesari ---
An update:
By replacing the line
list_getcurr => this%curr%getval()
with
CLASS(*),POINTER :: l_p
l_p => this%curr%getval()
list_getcurr => l_p
i.e. assigning the upper function result to a temporary loc
Assignee: unassigned at gcc dot gnu.org
Reporter: dcesari69 at gmail dot com
Target Milestone: ---
Created attachment 57990
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57990&action=edit
Failing program
Allocation af an unlimited polymorphic array with MOLD=