public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31591]  New: internal compiler error on array initialization statement using 'ubound'
@ 2007-04-16 18:37 Catherine dot M dot Moroney at jpl dot nasa dot gov
  2007-04-16 19:05 ` [Bug fortran/31591] " dfranke at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Catherine dot M dot Moroney at jpl dot nasa dot gov @ 2007-04-16 18:37 UTC (permalink / raw)
  To: gcc-bugs

See the bit of code below dealing with the initialization of array contents
with
the "ubound" results called on another array.  If the "module" statements plus
the write(*,*) statements are both commented out, then this bit of code
compiles.  However, if either (a) this code is made into a module, or
(b) it remains as a program but the 'write(*,*)' statement is put back in, then
the compilation fails with an "internal compiler error: in
gfc_conv_array_initializer, 
at fortran/trans-array.c:3460"

!MODULE TEST_CERES

PROGRAM Test_ceres

implicit none

real, dimension(10, 10,  10, 3, 4) ::  TCg_coef 
integer, parameter, dimension(5)  :: &
    TCg_bband_coef_ranks = ubound(TCg_coef)

!write(*,*) 'array_ranks = ',TCg_bband_coef_ranks

end program Test_ceres
!end module Test_ceres


-- 
           Summary: internal compiler error on array initialization
                    statement using 'ubound'
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Catherine dot M dot Moroney at jpl dot nasa dot gov


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


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

end of thread, other threads:[~2007-04-29 16:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 18:37 [Bug fortran/31591] New: internal compiler error on array initialization statement using 'ubound' Catherine dot M dot Moroney at jpl dot nasa dot gov
2007-04-16 19:05 ` [Bug fortran/31591] " dfranke at gcc dot gnu dot org
2007-04-16 19:07 ` Catherine dot M dot Moroney at jpl dot nasa dot gov
2007-04-16 19:42 ` [Bug fortran/31591] ICE: on array initialization statement using 'ubound' (fortran/trans-array.c:3693) dfranke at gcc dot gnu dot org
2007-04-16 20:14 ` burnus at gcc dot gnu dot org
2007-04-17 21:48 ` [Bug fortran/31591] UBOUND as initialization expression (lacking simplification) fxcoudert at gcc dot gnu dot org
2007-04-17 22:09 ` Catherine dot M dot Moroney at jpl dot nasa dot gov
2007-04-17 22:22 ` fxcoudert at gcc dot gnu dot org
2007-04-17 22:51 ` fxcoudert at gcc dot gnu dot org
2007-04-17 23:08 ` fxcoudert at gcc dot gnu dot org
2007-04-17 23:13 ` Catherine dot M dot Moroney at jpl dot nasa dot gov
2007-04-29 15:22 ` fxcoudert at gcc dot gnu dot org
2007-04-29 16:04 ` fxcoudert at gcc dot gnu dot org
2007-04-29 16:36 ` fxcoudert 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).