public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55501] New: ICE using MERGE in constant expr
@ 2012-11-28  0:27 longb at cray dot com
  2012-11-28  0:37 ` [Bug fortran/55501] " longb at cray dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: longb at cray dot com @ 2012-11-28  0:27 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55501
           Summary: ICE using MERGE in constant expr
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: longb@cray.com


Test (extracted from a larger module)

> cat test2.f90
module test

integer,parameter,private :: int32 = 4
integer,private,parameter :: dik = kind(0)     ! Default Integer Kind

type MPI_Datatype
   integer :: mpi_val
end type

type(MPI_Datatype),parameter,private :: MPIx_I4       = MPI_Datatype(4)
type(MPI_Datatype),parameter,private :: MPIx_I8       = MPI_Datatype(8)
type(MPI_Datatype),parameter :: MPI_INTEGER           = merge(MPIx_I4, MPIx_I8,
 dik==int32)

end module test

> ftn -c test2.f90
f951: internal compiler error: in gfc_conv_structure, at
fortran/trans-expr.c:5360
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Also fails with 4.8.

Allowing MERGE here is a F2003 feature (elemental intrinsic with constant
arguments). In any case, the compiler should not abort.

Compiles OK with Cray compiler.


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

end of thread, other threads:[~2013-09-26  4:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-28  0:27 [Bug fortran/55501] New: ICE using MERGE in constant expr longb at cray dot com
2012-11-28  0:37 ` [Bug fortran/55501] " longb at cray dot com
2012-11-28  9:16 ` [Bug fortran/55501] [F03] " janus at gcc dot gnu.org
2012-11-28  9:40 ` janus at gcc dot gnu.org
2012-11-28 10:11 ` janus at gcc dot gnu.org
2012-11-28 10:36 ` janus at gcc dot gnu.org
2012-11-28 10:49 ` burnus at gcc dot gnu.org
2012-11-28 10:50 ` janus at gcc dot gnu.org
2012-11-28 10:55 ` burnus at gcc dot gnu.org
2012-11-28 11:04 ` burnus at gcc dot gnu.org
2012-11-28 12:17 ` janus at gcc dot gnu.org
2012-11-28 12:22 ` janus at gcc dot gnu.org
2012-11-28 14:54 ` burnus at gcc dot gnu.org
2013-09-26  4:43 ` longb at cray dot com

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