public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38883]  New: Internal Compiler Error for MVBITS with derived type argument that has run-time subscripts
@ 2009-01-16 20:47 dick dot hendrickson at gmail dot com
  2009-01-16 21:38 ` [Bug fortran/38883] [4.4 Regression] " burnus at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dick dot hendrickson at gmail dot com @ 2009-01-16 20:47 UTC (permalink / raw)
  To: gcc-bugs

The following program causes an internal compiler error.  If the single
reference to NF3 in the MVBITS argument list is changed to "3" the program
compiles and executes.

Dick Hendrickson

      module yg0009_stuff

! fails on Windows XP
! gcc version 4.4.0 20081219 (experimental) [trunk revision 142842] (GCC)

      type unseq
         integer I
      end type

      contains

      SUBROUTINE YG0009(TDA2L,NF4,NF3,NF1,MF1,MF4,MF3)
      TYPE(UNSEQ) TDA2L(4,3)

      CALL MVBITS (TDA2L(4:1:-1,1:3)%I,2,
     $   4, TDA2L(4:1:-1,1:NF3)%I, 3)

!  these also ICE, but seem needlessly complex
!      TYPE(UNSEQ) TDA2L(NF4,NF3)
!
!      CALL MVBITS (TDA2L(NF4:NF1:MF1,NF1:NF3)%I,2,
!     $   4, TDA2L(-MF4:-MF1:-NF1,-MF1:-MF3)%I, 3)
!  but, you might as well try them in your spare time ;)

      END SUBROUTINE

      end module yg0009_stuff

      program try_yg0009
      use yg0009_stuff
      type(unseq)  tda2l(4,3)

      call yg0009(tda2l,4,3,1,-1,-4,-3)

      end


C:\gfortran>gfortran try_yg0009.f
try_yg0009.f: In function 'yg0009':
try_yg0009.f:12: internal compiler error: in gfc_trans_allocate_array_storage,
a
t fortran/trans-array.c:558
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Internal Compiler Error for MVBITS with derived type
                    argument that has run-time subscripts
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


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


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

end of thread, other threads:[~2009-01-29 17:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-16 20:47 [Bug fortran/38883] New: Internal Compiler Error for MVBITS with derived type argument that has run-time subscripts dick dot hendrickson at gmail dot com
2009-01-16 21:38 ` [Bug fortran/38883] [4.4 Regression] " burnus at gcc dot gnu dot org
2009-01-16 21:43 ` jakub at gcc dot gnu dot org
2009-01-16 21:47 ` mikael at gcc dot gnu dot org
2009-01-18 14:28 ` [Bug fortran/38883] [4.4 Regression] ICE " burnus at gcc dot gnu dot org
2009-01-18 19:16 ` burnus at gcc dot gnu dot org
2009-01-20  9:47 ` domob at gcc dot gnu dot org
2009-01-25  8:36 ` domob at gcc dot gnu dot org
2009-01-27 18:08 ` domob at gcc dot gnu dot org
2009-01-27 18:10 ` domob at gcc dot gnu dot org
2009-01-29 17:44 ` hjl 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).