This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/53296] New: Segfault on non-constant character array constructor containing kind spec


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]