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/77517] New: ICE in conv_intrinsic_move_alloc, at fortran/trans-intrinsic.c:9517


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77517

            Bug ID: 77517
           Summary: ICE in conv_intrinsic_move_alloc, at
                    fortran/trans-intrinsic.c:9517
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Invalid code with a name conflict between variable and subroutine.
Affects versions 5, 6, 7 :


$ cat z1.f90
program p
   class(*), allocatable :: a, b
   call move_alloc (a, b)
contains
   subroutine b
   end
end


$ gfortran-7-20160904 z1.f90
z1.f90:3:0:

    call move_alloc (a, b)

internal compiler error: in conv_intrinsic_move_alloc, at
fortran/trans-intrinsic.c:9517
0x77fe2e conv_intrinsic_move_alloc
        ../../gcc/fortran/trans-intrinsic.c:9516
0x77fe2e gfc_conv_intrinsic_subroutine(gfc_code*)
        ../../gcc/fortran/trans-intrinsic.c:9770
0x7229f2 trans_code
        ../../gcc/fortran/trans.c:1746
0x7517a8 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6224
0x6dd050 translate_all_program_units
        ../../gcc/fortran/parse.c:5911
0x6dd050 gfc_parse_file()
        ../../gcc/fortran/parse.c:6117
0x71f602 gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:198

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