public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35846]  New: ICE on nested character constructors
@ 2008-04-06 16:20 burnus at gcc dot gnu dot org
  2008-04-13 20:33 ` [Bug fortran/35846] " tkoenig at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-04-06 16:20 UTC (permalink / raw)
  To: gcc-bugs

The following program gives an ICE. One reason could be the global variables.
(cf. PR27997 comment 21).

implicit none
integer i
character(len=2) :: c(3)
c = 'a'
c = [ [ trim(c(1)), 'a' ]//'c', 'cd' ]
print *, c
end

Variants to check (or combinations of those):
- Compile with -fbounds-check
- Use  c = '' or  c = 'ab'
- Use typespec after PR27997 has been fixed, either on the inner or on the
outer loop. E.g.
  c = [ [ character(1):: trim(c(1)), 'a' ]//'c', 'cd' ]
etc.


-- 
           Summary: ICE on nested character constructors
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-09-21 15:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-06 16:20 [Bug fortran/35846] New: ICE on nested character constructors burnus at gcc dot gnu dot org
2008-04-13 20:33 ` [Bug fortran/35846] " tkoenig at gcc dot gnu dot org
2008-04-13 20:33 ` tkoenig at gcc dot gnu dot org
2008-05-20  7:33 ` d at domob dot eu
2008-05-21 15:06 ` d at domob dot eu
2008-05-21 15:06 ` d at domob dot eu
2008-09-18 18:24 ` domob at gcc dot gnu dot org
2008-09-20 11:54 ` domob at gcc dot gnu dot org
2008-09-21 15:36 ` domob at gcc dot gnu dot org
2008-09-21 15:37 ` domob at gcc dot gnu dot 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).