public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/68155] New: ICE on initializing character array in type (len_lhs <> len_rhs)
@ 2015-10-29 18:35 gerhard.steinmetz.fortran@t-online.de
  2015-10-29 18:35 ` [Bug fortran/68155] " gerhard.steinmetz.fortran@t-online.de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-10-29 18:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68155

            Bug ID: 68155
           Summary: ICE on initializing character array in type (len_lhs
                    <> len_rhs)
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Embedded in a type :

$ cat z1t.f90
program p
   type t
      character(2) :: z(1) = '' // ['y']
   end type
   type(t) :: z
   print *, z
end

$ gfortran -g -O0 -Wall -fcheck=all z1t.f90
f951: internal compiler error: Segmentation fault

---

Simplified and correct :

$ cat z1c.f90
program p
   character(2) :: z(1) = '' // ['y']
   print *, '>>' // z // '<<'
end

$ gfortran -g -O0 -Wall -fcheck=all z1c.f90
$ a.out
 >>y <<


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-24 14:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-29 18:35 [Bug fortran/68155] New: ICE on initializing character array in type (len_lhs <> len_rhs) gerhard.steinmetz.fortran@t-online.de
2015-10-29 18:35 ` [Bug fortran/68155] " gerhard.steinmetz.fortran@t-online.de
2015-10-29 18:37 ` gerhard.steinmetz.fortran@t-online.de
2015-10-29 23:03 ` dominiq at lps dot ens.fr
2023-09-19 17:30 ` pault at gcc dot gnu.org
2023-09-24  8:01 ` cvs-commit at gcc dot gnu.org
2023-09-24 14:26 ` cvs-commit at gcc dot gnu.org
2023-09-24 14:27 ` pault at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).