http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53296
Bug #: 53296
Summary: Segfault on non-constant character array constructor
containing kind spec
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 27360
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27360
source raising the segfault
Executing the binary compiled from attached source prints:
size 78
arr: ABCDEGHIJ
size 1
Speicherzugriffsfehler (Speicherabzug geschrieben)
Besides the segfault, the array size should not change.
This is not reproducable when replacing the character(*)-type entities by
integer(INT64) nor when omitting the function call in the constructor.