public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16936] New: Internal compiler error for MERGE with character arguments #1 and 2
@ 2004-08-09 14:19 paulthomas2 at wanadoo dot fr
  2004-08-09 15:54 ` [Bug fortran/16936] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: paulthomas2 at wanadoo dot fr @ 2004-08-09 14:19 UTC (permalink / raw)
  To: gcc-bugs

!This program fails to compile, with the following message:
! ../bin/gfortran bug3.f90 -o test
!assertion "POINTER_TYPE_P (TREE_TYPE (se->expr))" failed: file "../../gcc/gcc/fo
!rtran/trans-expr.c", line 1704
!bug3.f90: In function `MAIN__':
!bug3.f90:15: internal compiler error: Aborted
!Please submit a full bug report,
!with preprocessed source if appropriate.
!Distilled from Meissner textbook example
!If I understand the standard correctly, the first and second arguments of MERGE
!can be of any but the same type.
!
  program bug3 
    implicit none 
    logical, parameter :: t = .true. , f = .false.
    logical, dimension(8)       :: elodge =(/ t,f,t,f,t,f,t,f /)
!
    print '(8 A1)', Merge ("+", "-", elodge ) ! causes failure
!
!   print '(8I1)', Merge (1, 0, elodge ) ! works fine
!
    stop
  end program bug3

-- 
           Summary: Internal compiler error for MERGE with character
                    arguments #1 and 2
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paulthomas2 at wanadoo dot fr
                CC: bdavis at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
                    dot org


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


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

* [Bug fortran/16936] Internal compiler error for MERGE with character arguments #1 and 2
  2004-08-09 14:19 [Bug fortran/16936] New: Internal compiler error for MERGE with character arguments #1 and 2 paulthomas2 at wanadoo dot fr
@ 2004-08-09 15:54 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-09 15:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-09 15:54 -------


*** This bug has been marked as a duplicate of 15327 ***

*** This bug has been marked as a duplicate of 15327 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2004-08-09 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-09 14:19 [Bug fortran/16936] New: Internal compiler error for MERGE with character arguments #1 and 2 paulthomas2 at wanadoo dot fr
2004-08-09 15:54 ` [Bug fortran/16936] " pinskia 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).