This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53296] New: Segfault on non-constant character array constructor containing kind spec
- From: "gccbgz.lionm at xoxy dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 May 2012 15:38:41 +0000
- Subject: [Bug fortran/53296] New: Segfault on non-constant character array constructor containing kind spec
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: gccbgz.lionm@xoxy.net
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.