This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/41717] [4.5.0 regression] internal compiler error: in expand_debug_expr



------- Comment #5 from kargl at gcc dot gnu dot org  2009-10-15 20:04 -------
Here's a reduced testcase.

  subroutine state_matrix_test ()
    complex :: val
    complex, dimension(1) :: v
    v(1) = (0.0, 0.8)
    val = conjg(v(1) * v(1))
  end subroutine state_matrix_test

Any level of optimization along with -g triggers the problem.

troutmask:sgk[248] gfc4x -g -c state_matrices.f90
troutmask:sgk[249] gfc4x -g -O -c state_matrices.f90
 <conj_expr 0x200fd44c0
    type <complex_type 0x2016daf00 complex(kind=4)
        type <real_type 0x2016da240 real(kind=4) SF
            size <integer_cst 0x2016beab0 constant 32>
            unit size <integer_cst 0x2016be720 constant 4>
            align 32 symtab 0 alias set -1 canonical type 0x2016da240 precision
32
            pointer_to_this <pointer_type 0x2016da480>>
        SC
        size <integer_cst 0x2016beba0 constant 64>
        unit size <integer_cst 0x2016bebd0 constant 8>
        align 32 symtab 0 alias set -1 canonical type 0x2016daf00
        pointer_to_this <pointer_type 0x20179d600>>

    arg 0 <debug_expr_decl 0x2017ac080 D.4294967295 type <complex_type
0x2016daf00 complex(kind=4)>
        SC file state_matrices.f90 line 7 col 0
        align 1
        (debug_expr:SC D#1)>
    state_matrices.f90:6:0>
state_matrices.f90: In function 'state_matrix_test':
state_matrices.f90:2:0: internal compiler error: in expand_debug_expr, at
cfgexpand.c:2944
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]