public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32242]  New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
@ 2007-06-07 10:39 jv244 at cam dot ac dot uk
  2007-06-07 10:40 ` [Bug fortran/32242] " jv244 at cam dot ac dot uk
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-06-07 10:39 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]

current trunk :

gfortran -c -O0 test.f90
test.f90: In function ‘pw_integral_a2b’:
test.f90:251: internal compiler error: in gfc_conv_variable, at
fortran/trans-expr.c:386
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: nternal compiler error: in gfc_conv_variable, at
                    fortran/trans-expr.c:386
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/32242] nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
@ 2007-06-07 10:40 ` jv244 at cam dot ac dot uk
  2007-06-07 10:40 ` jv244 at cam dot ac dot uk
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-06-07 10:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jv244 at cam dot ac dot uk  2007-06-07 10:39 -------
Created an attachment (id=13664)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13664&action=view)
testcase


-- 


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


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

* [Bug fortran/32242] nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
  2007-06-07 10:40 ` [Bug fortran/32242] " jv244 at cam dot ac dot uk
@ 2007-06-07 10:40 ` jv244 at cam dot ac dot uk
  2007-06-07 10:44 ` [Bug fortran/32242] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-06-07 10:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2007-06-07 10:40 -------
This blocks CP2K (PR 29975)


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |29975
              nThis|                            |


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


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

* [Bug fortran/32242] [4.3 Regression] nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
  2007-06-07 10:40 ` [Bug fortran/32242] " jv244 at cam dot ac dot uk
  2007-06-07 10:40 ` jv244 at cam dot ac dot uk
@ 2007-06-07 10:44 ` pinskia at gcc dot gnu dot org
  2007-06-07 13:05 ` fxcoudert at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-07 10:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
            Summary|nternal compiler error: in  |[4.3 Regression] nternal
                   |gfc_conv_variable, at       |compiler error: in
                   |fortran/trans-expr.c:386    |gfc_conv_variable, at
                   |                            |fortran/trans-expr.c:386
   Target Milestone|---                         |4.3.0


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


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

* [Bug fortran/32242] [4.3 Regression] nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2007-06-07 10:44 ` [Bug fortran/32242] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-06-07 13:05 ` fxcoudert at gcc dot gnu dot org
  2007-06-07 14:11 ` jv244 at cam dot ac dot uk
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-06-07 13:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2007-06-07 13:04 -------
Confirmed on i686-darwin. I'll look into it during the week-end if noone beats
me to it.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-06-07 13:04:57
               date|                            |


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


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

* [Bug fortran/32242] [4.3 Regression] nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2007-06-07 13:05 ` fxcoudert at gcc dot gnu dot org
@ 2007-06-07 14:11 ` jv244 at cam dot ac dot uk
  2007-06-08  4:59 ` pault at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-06-07 14:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jv244 at cam dot ac dot uk  2007-06-07 14:10 -------
Reduced:

MODULE kahan_sum
  INTEGER, PARAMETER :: dp=KIND(0.0D0)
  INTERFACE accurate_sum
    MODULE PROCEDURE kahan_sum_d1, kahan_sum_z1
  END INTERFACE accurate_sum
  TYPE pw_grid_type
     REAL (KIND=dp), DIMENSION ( : ), POINTER :: gsq
  END TYPE pw_grid_type
  TYPE pw_type
     REAL (KIND=dp), DIMENSION ( : ), POINTER :: cr
     COMPLEX (KIND=dp), DIMENSION ( : ), POINTER :: cc
     TYPE ( pw_grid_type ), POINTER :: pw_grid
  END TYPE pw_type
CONTAINS
 FUNCTION kahan_sum_d1(array,mask) RESULT(ks)
   REAL(KIND=dp), DIMENSION(:), INTENT(IN)  :: array
   LOGICAL, DIMENSION(:), INTENT(IN), &
     OPTIONAL                               :: mask
   REAL(KIND=dp)                            :: ks
 END FUNCTION kahan_sum_d1
  FUNCTION kahan_sum_z1(array,mask) RESULT(ks)
    COMPLEX(KIND=dp), DIMENSION(:), &
      INTENT(IN)                             :: array
    LOGICAL, DIMENSION(:), INTENT(IN), &
      OPTIONAL                               :: mask
    COMPLEX(KIND=dp)                         :: ks
  END FUNCTION kahan_sum_z1

FUNCTION pw_integral_a2b ( pw1, pw2 ) RESULT ( integral_value )
    TYPE(pw_type), INTENT(IN)                :: pw1, pw2
    REAL(KIND=dp)                            :: integral_value
     integral_value = accurate_sum ( REAL ( CONJG ( pw1 % cc ( : ) ) &
          *  pw2 % cc ( : ) ,KIND=dp) * pw1 % pw_grid % gsq ( : ) )
END FUNCTION pw_integral_a2b
END MODULE


-- 


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


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

* [Bug fortran/32242] [4.3 Regression] nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2007-06-07 14:11 ` jv244 at cam dot ac dot uk
@ 2007-06-08  4:59 ` pault at gcc dot gnu dot org
  2007-06-08  8:06 ` [Bug fortran/32242] [4.3 Regression] internal " fxcoudert at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-06-08  4:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pault at gcc dot gnu dot org  2007-06-08 04:59 -------
I believe that this is also caused by r125316.

Paul


-- 


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


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

* [Bug fortran/32242] [4.3 Regression] internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2007-06-08  4:59 ` pault at gcc dot gnu dot org
@ 2007-06-08  8:06 ` fxcoudert at gcc dot gnu dot org
  2007-06-29 18:41 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-06-08  8:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from fxcoudert at gcc dot gnu dot org  2007-06-08 08:06 -------
Patch reverted until Lee comes back, PR assigned to him.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lmillward at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|ice-on-valid-code           |
            Summary|[4.3 Regression] nternal    |[4.3 Regression] internal
                   |compiler error: in          |compiler error: in
                   |gfc_conv_variable, at       |gfc_conv_variable, at
                   |fortran/trans-expr.c:386    |fortran/trans-expr.c:386


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


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

* [Bug fortran/32242] [4.3 Regression] internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (6 preceding siblings ...)
  2007-06-08  8:06 ` [Bug fortran/32242] [4.3 Regression] internal " fxcoudert at gcc dot gnu dot org
@ 2007-06-29 18:41 ` mmitchel at gcc dot gnu dot org
  2007-07-06 12:17 ` fxcoudert at gcc dot gnu dot org
  2007-07-16 19:13 ` lmillward at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:41 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug fortran/32242] [4.3 Regression] internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (7 preceding siblings ...)
  2007-06-29 18:41 ` mmitchel at gcc dot gnu dot org
@ 2007-07-06 12:17 ` fxcoudert at gcc dot gnu dot org
  2007-07-16 19:13 ` lmillward at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-07-06 12:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from fxcoudert at gcc dot gnu dot org  2007-07-06 12:17 -------
Lee has submitted a new version of his patch, taking into account that testcase
(and adding it to the testsuite). Thus, closing the bug.


-- 

fxcoudert at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/32242] [4.3 Regression] internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386
  2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
                   ` (8 preceding siblings ...)
  2007-07-06 12:17 ` fxcoudert at gcc dot gnu dot org
@ 2007-07-16 19:13 ` lmillward at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2007-07-16 19:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from lmillward at gcc dot gnu dot org  2007-07-16 19:13 -------
Subject: Bug 32242

Author: lmillward
Date: Mon Jul 16 19:12:44 2007
New Revision: 126689

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126689
Log:
        PR fortran/32222
        PR fortran/32238
        PR fortran/32242        
        * trans-intrinsic.c (gfc_conv_intrinsic_function_args): Adjust
        to operate on a stack allocated array for the intrinsic arguments
        instead of creating a TREE_LIST. Add two new parameters for the
        array and the number of elements. Update all callers to allocate
        an array of the correct length to pass in. Update comment.
        (gfc_intrinsic_argument_list_length): New function.
        (gfc_conv_intrinsic_conversion): Call it.
        (gfc_conv_intrinsic_mnimax): Likewise.
        (gfc_conv_intrinsic_merge): Likewise.
        (gfc_conv_intrinsic_lib_function): Call it. Use new CALL_EXPR
        constructors.
        (gfc_conv_intrinsic_cmplx): Likewise.
        (gfc_conv_intrinsic_ctime): Likewise.
        (gfc_covn_intrinsic_fdate): Likewise.
        (gfc_conv_intrinsic_ttynam): Likewise.
        (gfc_conv_intrinsic_ishftc): Likewise.
        (gfc_conv_intrinsic_index): Likewise.
        (gfc_conv_intrinsic_scan): Likewise.
        (gfc_conv_intrinsic_verify): Likewise.
        (gfc_conv_intrinsic_trim): Likewise.
        (gfc_conv_intrinsic_aint): Use new CALL_EXPR constructors.
        (gfc_conv_intrinsic_exponent): Likewise.
        (gfc_conv_intrinsic_bound): Likewise.
        (gfc_conv_intrinsic_abs): Likewise.
        (gfc_conv_intrinsic_mod): Likewise.
        (gfc_conv_intrinsic_sign): Likewise.
        (gfc_conv_intrinsic_len): Likewise.
        (gfc_conv_intrinsic_adjust): Likewise.
        (gfc_conv_intrinsic_si_kind): Likewise. 

        * gfortran.dg/cmplx_intrinsic_1.f90: New test.

        PR fortran/32238
        * gfortran.dg/pr32238.f90: New test.

        PR fortran/32222
        * gfortran.dg/pr32222.f90: New test.

        PR fortran/32242
        * gfortran.dg/pr32242.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/cmplx_intrinsic_1.f90
    trunk/gcc/testsuite/gfortran.dg/pr32222.f90
    trunk/gcc/testsuite/gfortran.dg/pr32238.f90
    trunk/gcc/testsuite/gfortran.dg/pr32242.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2007-07-16 19:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 10:39 [Bug fortran/32242] New: nternal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:386 jv244 at cam dot ac dot uk
2007-06-07 10:40 ` [Bug fortran/32242] " jv244 at cam dot ac dot uk
2007-06-07 10:40 ` jv244 at cam dot ac dot uk
2007-06-07 10:44 ` [Bug fortran/32242] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-06-07 13:05 ` fxcoudert at gcc dot gnu dot org
2007-06-07 14:11 ` jv244 at cam dot ac dot uk
2007-06-08  4:59 ` pault at gcc dot gnu dot org
2007-06-08  8:06 ` [Bug fortran/32242] [4.3 Regression] internal " fxcoudert at gcc dot gnu dot org
2007-06-29 18:41 ` mmitchel at gcc dot gnu dot org
2007-07-06 12:17 ` fxcoudert at gcc dot gnu dot org
2007-07-16 19:13 ` lmillward 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).