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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-21
                 CC|                            |janus at gcc dot gnu.org
            Summary|Compiler crashes (and make  |[4.7/4.8/4.9 Regression]
                   |wrong assignments) at some  |Compiler crashes (and make
                   |combinations of pointers    |wrong assignments) at some
                   |                            |combinations of pointers
     Ever Confirmed|0                           |1

--- Comment #2 from janus at gcc dot gnu.org 2013-04-21 08:01:07 UTC ---
(In reply to comment #0)
> and we have
> ~/src gfortran -Wall bug.f95
> data_types.f95: In function ‘MAIN__’:
> data_types.f95:19: internal compiler error: Ошибка сегментирования

This part I can reproduce. I have reduced it as much as I could:

type pCItem
    integer :: Ele
end type
type(pCItem), target, dimension(1:2,1:2) :: pCellArray
integer, pointer, dimension(:,:) :: pArray
integer, pointer :: p_pointer
pArray => pCellArray%Ele
p_pointer => pArray(1,1)
end

This gives the ICE

internal compiler error: Segmentation fault
 type pCItem
 ^
0x89099f crash_signal
        /home/janus/gcc49/trunk/gcc/toplev.c:332
0x5c6f8a gfc_get_symbol_decl(gfc_symbol*)
        /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:1464
0x5c733f generate_local_decl
        /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:4652
0x5965b3 do_traverse_symtree
        /home/janus/gcc49/trunk/gcc/fortran/symbol.c:3571
0x5c929a generate_local_vars
        /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:4811
0x5c929a gfc_generate_function_code(gfc_namespace*)
        /home/janus/gcc49/trunk/gcc/fortran/trans-decl.c:5385


with 4.7, 4.8 and trunk at least, but works with 4.3. So it seems to be a
regression introduced in 4.4. Thanks for reporting!

About the second part, I'm not fully sure how to reproduce it. Can you give a
full self-contained code example instead of describing it in words?

Reply via email to