This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80751] New: NULL pointer dereferencing in gfc_trans_call on calling elemental procedure (trunk 247930)
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 May 2017 05:03:07 +0000
- Subject: [Bug fortran/80751] New: NULL pointer dereferencing in gfc_trans_call on calling elemental procedure (trunk 247930)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80751
Bug ID: 80751
Summary: NULL pointer dereferencing in gfc_trans_call on
calling elemental procedure (trunk 247930)
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Target Milestone: ---
This issue is exposed by adding a gcc_assert at trans-stmt.c:455
! NULL pointer dereferencing in gfc_trans_call on calling elemental procedure
(trunk 247930)
!trans-stmt.c:455 gcc_assert(code->expr1); /*!vz my addition
gfortran.dg/bounds_check_fail_2.f90*/
!trans-stmt.c:456 gfc_conv_loop_setup (&loop, &code->expr1->where);
interface
elemental subroutine sub(i)
intent(in) :: i
end subroutine
end interface
call sub((/1,2/))
end
!.f:9:0:
! call sub((/1,2/))
!internal compiler error: in gfc_trans_call, at fortran/trans-stmt.c:455
!0xc6ee72 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
! ../../gcc/fortran/trans-stmt.c:455
!0x99834e trans_code
! ../../gcc/fortran/trans.c:1885
!0x99900f gfc_trans_code(gfc_code*)
! ../../gcc/fortran/trans.c:2128
!0xa9d0cf gfc_generate_function_code(gfc_namespace*)
! ../../gcc/fortran/trans-decl.c:6332
!0x999080 gfc_generate_code(gfc_namespace*)
! ../../gcc/fortran/trans.c:2145
!0x81564d translate_all_program_units
! ../../gcc/fortran/parse.c:6074
!0x82be66 gfc_parse_file()
! ../../gcc/fortran/parse.c:6274
!0x970e19 gfc_be_parse_file
! ../../gcc/fortran/f95-lang.c:204
!Please submit a full bug report,
!with preprocessed source if appropriate.
!Please include the complete backtrace with any bug report.
!See <https://gcc.gnu.org/bugs/> for instructions.