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

           Summary: ICE (segfault): Invalid read in compare_actual_formal
                    [error recovery]
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bur...@gcc.gnu.org


The following program segfaults after printing the diagnostic:

call sub(1)
        1
Error: Dummy argument 'j' of procedure 'sub' at (1) has an attribute that
requires an explicit interface for this procedure


subroutine sub(j)
  integer, volatile :: j
end subroutine sub

call sub(1)
end


Valgrind shows:

 Invalid read of size 8
    at 0x4E180F: compare_actual_formal (interface.c:2270)
    by 0x4E332D: gfc_procedure_use (interface.c:2678)
    by 0x522834: resolve_global_procedure (resolve.c:2195)
    by 0x52A634: resolve_call (resolve.c:3550)

Reply via email to