public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26119]  New: ICE on transpose with specific compiler option
@ 2006-02-06 10:08 iguchi at coral dot t dot u-tokyo dot ac dot jp
  2006-02-06 13:14 ` [Bug fortran/26119] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: iguchi at coral dot t dot u-tokyo dot ac dot jp @ 2006-02-06 10:08 UTC (permalink / raw)
  To: gcc-bugs

In Mac OSX ver. 10.3, I got following internal compiler error.

$ gfortran --version
GNU Fortran 95 (GCC) 4.2.0 20060129 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

$ cat ice.f90
       subroutine foo(wk0,g1,g2,ia0,ia1,n2)
       implicit none
       integer           :: n2
       double precision  :: a3(3,3)
       double precision  :: a4(3,3)
       character*72      :: g1(n2)
       character*72      :: g2(n2)
       integer           :: ia0
       integer           :: ia1
       double precision  :: wk0(3)

       integer          :: g,ia2,ia3,ia4,ia5,ia6,ia7,ia8,ia9,j,k,k1,k2,n
       integer          :: wk2(3),wk3(n2),wk6(1)
       double precision :: a1(3,3),a2(3,3),wk1(n2),wk4(3),wk5(3)
       double precision :: a5(n2,3) , b 

       wk1(1:3) = 0.0
       do k=1,n
         call f(.true., a3(:,:), g1(ia9), a1, wk4 ,0, 0) 
         call f(.true., a3(:,:), g2(ia9), a2, wk5, 0, 0)
         if (g(a1,wk4) == 0) return   
         a1 = MATMUL(TRANSPOSE(a4) , a5) 
       enddo

       if (b < 1.0) then 
         k1 = 0 
         k2 = 0
         b = 1.0
         ia2 = 1
         ia3 = 1
         ia5 = 1
         ia6 = 1
         ia7 = 1
         ia8 = 1
         j = 1
         wk1(1:4) = wk1(wk3(1:4))
         wk2(1) = 1
         wk6 = maxloc(wk1(1:3))
       endif
     end subroutine

$ gfortran -c -ggdb ice.f90
ice.f90: In function 'foo':
ice.f90:21: internal compiler error: in gfc_conv_array_transpose, at
fortran/trans-array.c:718
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE on transpose with specific compiler option
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp


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


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

* [Bug fortran/26119] ICE on transpose with specific compiler option
  2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
@ 2006-02-06 13:14 ` pinskia at gcc dot gnu dot org
  2006-02-06 15:54 ` kargl at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 13:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-06 13:14 -------
Confirmed, I only get the failures on powerpc-darwin and not on
x86_64-linux-gnu for some reason.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
 GCC target triplet|                            |powerpc-darwin
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-06 13:14:44
               date|                            |


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


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

* [Bug fortran/26119] ICE on transpose with specific compiler option
  2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
  2006-02-06 13:14 ` [Bug fortran/26119] " pinskia at gcc dot gnu dot org
@ 2006-02-06 15:54 ` kargl at gcc dot gnu dot org
  2006-05-07 13:50 ` fxcoudert at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-02-06 15:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2006-02-06 15:54 -------
I've see this on amd64-*-freebsd.  A brief debug session
is described here.

http://gcc.gnu.org/ml/fortran/2006-01/msg00413.html


-- 


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


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

* [Bug fortran/26119] ICE on transpose with specific compiler option
  2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
  2006-02-06 13:14 ` [Bug fortran/26119] " pinskia at gcc dot gnu dot org
  2006-02-06 15:54 ` kargl at gcc dot gnu dot org
@ 2006-05-07 13:50 ` fxcoudert at gcc dot gnu dot org
  2006-05-08  4:35 ` iguchi at coral dot t dot u-tokyo dot ac dot jp
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-05-07 13:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2006-05-07 13:50 -------
I don't see this failure any more on powerpc-apple-darwin7.9.0. Can anyone
confirm it's still present? (perhaps Steve on amd64)


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org, kargl at gcc dot gnu
                   |                            |dot org


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


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

* [Bug fortran/26119] ICE on transpose with specific compiler option
  2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
                   ` (2 preceding siblings ...)
  2006-05-07 13:50 ` fxcoudert at gcc dot gnu dot org
@ 2006-05-08  4:35 ` iguchi at coral dot t dot u-tokyo dot ac dot jp
  2006-05-08  5:02 ` pinskia at gcc dot gnu dot org
  2006-05-08 17:48 ` sgk at troutmask dot apl dot washington dot edu
  5 siblings, 0 replies; 7+ messages in thread
From: iguchi at coral dot t dot u-tokyo dot ac dot jp @ 2006-05-08  4:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from iguchi at coral dot t dot u-tokyo dot ac dot jp  2006-05-08 04:35 -------
I believe that this bug still exists since the below testcase would be a
duplicated one.

$ gfortran -v        
Using built-in specs.
Target: powerpc-apple-darwin7.9.0
Configured with: ../gcc/configure --prefix=/usr/local/gfortran
--enable-languages=c,fortran --with-gmp=/tmp/gfortran-20060424/gfortran_libs
--enable-bootstrap
Thread model: posix
gcc version 4.2.0 20060423 (experimental)

$ cat ice.f90
       subroutine f(a,b,m,n,c,r)
       implicit none
       logical          :: m
       integer          :: n
       double precision :: a(1)
       double precision :: b(1,n)
       double precision :: c(1,1)
       double precision :: r(1,1)
       integer          :: i
       double precision :: h(1),p(1,1),q(1,1),s(1,1),v
       double precision,parameter :: e(1,1) = reshape((/0/), (/1,1/) )
       logical          :: l
       external d

       call d(c(:,:),1,q,v)
       p = c(:,:)
       s = matmul(p,transpose(q)) - e


       if (m) then
         if (l) continue
       endif

       c(:,:) = p

       call d(c,1,1,1)

       if (.true.) then
         do i=1,1
           h(1)=b(1,1)
         enddo
       endif
     end subroutine

$ gfortran -c -O2 ice.f90
ice.f90: In function 'f':
ice.f90:16: internal compiler error: in gfc_conv_array_transpose, at
fortran/trans-array.c:726
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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

* [Bug fortran/26119] ICE on transpose with specific compiler option
  2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
                   ` (3 preceding siblings ...)
  2006-05-08  4:35 ` iguchi at coral dot t dot u-tokyo dot ac dot jp
@ 2006-05-08  5:02 ` pinskia at gcc dot gnu dot org
  2006-05-08 17:48 ` sgk at troutmask dot apl dot washington dot edu
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-08  5:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-05-08 05:02 -------
(In reply to comment #4) 
> $ gfortran -v        
> Using built-in specs.
> Target: powerpc-apple-darwin7.9.0
> Configured with: ../gcc/configure --prefix=/usr/local/gfortran
> --enable-languages=c,fortran --with-gmp=/tmp/gfortran-20060424/gfortran_libs
> --enable-bootstrap
> Thread model: posix
> gcc version 4.2.0 20060423 (experimental)

Well it works for me wth 20060507 so I am going to close this as fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug fortran/26119] ICE on transpose with specific compiler option
  2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
                   ` (4 preceding siblings ...)
  2006-05-08  5:02 ` pinskia at gcc dot gnu dot org
@ 2006-05-08 17:48 ` sgk at troutmask dot apl dot washington dot edu
  5 siblings, 0 replies; 7+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2006-05-08 17:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sgk at troutmask dot apl dot washington dot edu  2006-05-08 17:48 -------
Subject: Re:  ICE on transpose with specific compiler option

On Mon, May 08, 2006 at 04:35:25AM -0000, iguchi at coral dot t dot u-tokyo dot
ac dot jp wrote:
> 
> I believe that this bug still exists since the below testcase would be a
> duplicated one.
> 

Neither your new code ice.f90 nor the transpose_char_1
testsuite code exhibits the ice on amd64-*-freebsd.


-- 


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


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

end of thread, other threads:[~2006-05-08 17:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 10:08 [Bug fortran/26119] New: ICE on transpose with specific compiler option iguchi at coral dot t dot u-tokyo dot ac dot jp
2006-02-06 13:14 ` [Bug fortran/26119] " pinskia at gcc dot gnu dot org
2006-02-06 15:54 ` kargl at gcc dot gnu dot org
2006-05-07 13:50 ` fxcoudert at gcc dot gnu dot org
2006-05-08  4:35 ` iguchi at coral dot t dot u-tokyo dot ac dot jp
2006-05-08  5:02 ` pinskia at gcc dot gnu dot org
2006-05-08 17:48 ` sgk at troutmask dot apl dot washington dot edu

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