public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38709]  New: ICE on zero-sized array in initialization expression
@ 2009-01-02 19:07 dfranke at gcc dot gnu dot org
  2009-01-02 19:13 ` [Bug fortran/38709] " jv244 at cam dot ac dot uk
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-01-02 19:07 UTC (permalink / raw)
  To: gcc-bugs

$> cat ice.f90
  INTEGER, PARAMETER :: i = 42
  INTEGER, PARAMETER :: array(1) = (/ 1 /)
  INTEGER, PARAMETER :: unknown = array(shape(i))
END

$> gfortran-svn ice.f90
f951: internal compiler error: in find_array_section, at fortran/expr.c:1213

$> gfortran-svn --version
GNU Fortran (GCC) 4.4.0 20090101

intel 10.1:
$> ifort -warn all ice.f90
fortcom: Error: ice.f90, line 3: When using this inquiry function, the shape of
this object cannot be evaluated to a constant.   [SHAPE]
      INTEGER, PARAMETER :: unknown = array(shape(i))
--------------------------------------------^

Lahey: "Shape of arrays on left and right sides of assignment do not conform."


-- 
           Summary: ICE on zero-sized array in initialization expression
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-04-10 14:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-02 19:07 [Bug fortran/38709] New: ICE on zero-sized array in initialization expression dfranke at gcc dot gnu dot org
2009-01-02 19:13 ` [Bug fortran/38709] " jv244 at cam dot ac dot uk
2009-04-10 14:12 ` dfranke at gcc dot gnu dot org
2009-04-10 14:14 ` dfranke 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).