whizard is hosted by Hepforge, IPPP Durham

Opened 9 years ago

Closed 9 years ago

#719 closed defect (fixed)

Workaround for gfortran 4.9.2 regression

Reported by: kilian Owned by: kilian
Priority: P0 Milestone: v2.2.6
Component: core Version: 2.2.5
Severity: minor Keywords:
Cc:

Description

There is code in syntax_rules.f90 that causes an ICE in gfortran 4.9.2, but not in earlier versions. Here is a reduction:

module string_pairs

  type :: string_t
     character, dimension(:), allocatable :: chars
  end type string_t

  type :: string_pair_t
     type(string_t), dimension(2) :: pair
  end type string_pair_t

contains

  subroutine proc (arg)
    class(string_pair_t), intent(in) :: arg
  end subroutine proc

end module string_pairs

If there's no compiler fix, I'll do a workaround (simply eliminate the dimension(2) string array).

Change History (2)

comment:1 Changed 9 years ago by Juergen Reuter

I will post this on bugzilla, but please do a workaround as gfortran 4.9.3 is not yet out and people might use this specific compiler.

comment:2 Changed 9 years ago by kilian

Resolution: fixed
Status: newclosed

Workaround in r6918.

Note: See TracTickets for help on using tickets.