public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55735] New: ICE with deferred-length strings in COMMON
@ 2012-12-18 15:59 burnus at gcc dot gnu.org
  2012-12-18 16:06 ` [Bug fortran/55735] " burnus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-12-18 15:59 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55735

             Bug #: 55735
           Summary: ICE with deferred-length strings in COMMON
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


I think the following test case it valid. In any case, an ICE is a bug. Vaguely
related is PR 55733.

block data
  character(len=:), pointer :: str(:)
  common /foo/ str
end block data

subroutine bar()
  character(len=:), pointer :: str
  common /foo/ str
!  print *, len(str), '"'//str//'"' !ICE in gfc_conv_intrinsic_len
  print '(3a)', '"',str(1:6),'"' ! ICE in gfc_conv_variable
end

character(len=:), pointer :: str(:)
common /foo/ str
allocate (character(len=6) :: str(1))
str = "ABCDEF"
call bar()
end


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

end of thread, other threads:[~2013-09-03 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18 15:59 [Bug fortran/55735] New: ICE with deferred-length strings in COMMON burnus at gcc dot gnu.org
2012-12-18 16:06 ` [Bug fortran/55735] " burnus at gcc dot gnu.org
2012-12-18 16:47 ` kargl at gcc dot gnu.org
2012-12-18 20:04 ` burnus at gcc dot gnu.org
2013-09-03 15:48 ` dominiq at lps dot ens.fr

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).