public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18752] New: ICE from index triplet arithmetic for character variables
@ 2004-12-01 10:15 paul dot richard dot thomas at cea dot fr
  2004-12-01 12:42 ` [Bug fortran/18752] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: paul dot richard dot thomas at cea dot fr @ 2004-12-01 10:15 UTC (permalink / raw)
  To: gcc-bugs

I thought that I had already submitted this one - a search through "my bugs" 
and such keywords as I could think of did not succeed in finding it.  If this 
is an old bug, please accept my apologies:

The code below causes an ICEtest_triplet.f90: in gfc_trans_scalar_assign, at 
fortran/trans-expr.c:2005.  It is specific to CHARACTER variables and, of 
course, element by element assignment within a DO loop works fine.

program test_triplet
   Character(len=5), dimension(4 )   ::  i 
   integer                 ::  idx = 1 , N = 4
   i  = (/"one  ","two  ","three","four "/)
   i( N : idx + 1 : -1 ) = i( N -1  : idx  : -1 ) 
   print * , i
end program test_triplet

-- 
           Summary: ICE from index triplet arithmetic for character
                    variables
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paul dot richard dot thomas at cea dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/18752] ICE from index triplet arithmetic for character variables
  2004-12-01 10:15 [Bug fortran/18752] New: ICE from index triplet arithmetic for character variables paul dot richard dot thomas at cea dot fr
@ 2004-12-01 12:42 ` pinskia at gcc dot gnu dot org
  2005-04-17 15:22 ` theine at nordita dot dk
  2005-06-06  0:11 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-01 12:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-01 12:42 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-01 12:42:33
               date|                            |


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


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

* [Bug fortran/18752] ICE from index triplet arithmetic for character variables
  2004-12-01 10:15 [Bug fortran/18752] New: ICE from index triplet arithmetic for character variables paul dot richard dot thomas at cea dot fr
  2004-12-01 12:42 ` [Bug fortran/18752] " pinskia at gcc dot gnu dot org
@ 2005-04-17 15:22 ` theine at nordita dot dk
  2005-06-06  0:11 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: theine at nordita dot dk @ 2005-04-17 15:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From theine at nordita dot dk  2005-04-17 15:22 -------
Compilation of the following piece of code gives the same error message:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
program test
  character, dimension(2) :: a
  integer :: i=1,j=2
  a(i:j) = a(i:j)       ! gives internal error
! a(1:2) = a(1:2)       ! works fine
end program test
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Tested with:

theine@cosmo:~/f90/bugs $ gfc -v
Using built-in specs.
Target: i386-linux
Configured with: ../gcc/configure --prefix=/tmp/gfortran-20050404/irun
--enable-languages=c,f95 --host=i386-linux
Thread model: posix
gcc version 4.1.0 20050404 (experimental)

theine@cosmo:~/f90/bugs $ gfortran-4.0 -v
Using built-in specs.
Target: i486-linux
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada
--prefix=/usr --libexecdir=/usr/lib --enable-shared --with-system-zlib
--enable-nls --enable-threads=posix --without-included-gettext
--program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo --enable-mpfr --enable-checking=release
i486-linux
Thread model: posix
gcc version 4.0.0 20050301 (prerelease) (Debian 4.0-0pre6ubuntu7)

-- 


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


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

* [Bug fortran/18752] ICE from index triplet arithmetic for character variables
  2004-12-01 10:15 [Bug fortran/18752] New: ICE from index triplet arithmetic for character variables paul dot richard dot thomas at cea dot fr
  2004-12-01 12:42 ` [Bug fortran/18752] " pinskia at gcc dot gnu dot org
  2005-04-17 15:22 ` theine at nordita dot dk
@ 2005-06-06  0:11 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-06  0:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-06 00:11 -------
Fixed in 4.0.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.1


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


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

end of thread, other threads:[~2005-06-06  0:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-01 10:15 [Bug fortran/18752] New: ICE from index triplet arithmetic for character variables paul dot richard dot thomas at cea dot fr
2004-12-01 12:42 ` [Bug fortran/18752] " pinskia at gcc dot gnu dot org
2005-04-17 15:22 ` theine at nordita dot dk
2005-06-06  0:11 ` 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).