Opened 11 years ago

Closed 8 years ago

#39120 closed defect (wontfix)

gcc47 @4.7.3_0: Incorrectly initializing null pointer causes internal gfortran error

Reported by: guyoom@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: gcc47

Description

The following code

program test
    implicit none

    type entry
        real :: value = 0.0
        integer :: index = 0
        type(entry), pointer :: next => null  !Error in initialization; should be null()
    end type entry

    type(entry), pointer :: chain
    type(entry), target :: first_element

    first_element%value = 1.5
    first_element%index = 1
    chain => first_element
    write(*,*) chain%value, chain%index

end program test

leads to the following internal compiler error for GNU Fortran (MacPorts gcc47 4.7.3_0+universal) 4.7.3:

derived_types.f08: In function 'test':
derived_types.f08:1:0: internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:1066

Change History (3)

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

does this just happen with the MacPorts gcc47, or does it happen with other compiles of it, too?

comment:2 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: jeremyhu@… added
Keywords: gfortran47 removed
Owner: changed from macports-tickets@… to mww@…
Priority: LowNormal
Summary: Error in initialization null pointer leads to internal compiler errorgcc47 @4.7.3_0: Incorrectly initializing null pointer causes internal gfortran error

Thanks. In the future, please Cc relevant port maintainers.

comment:3 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: wontfix
Status: newclosed

No response. If this is still an issue, please report upstream.

Note: See TracTickets for help on using tickets.