https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83742
Bug ID: 83742 Summary: [8 Regression] ICE in gfc_is_simply_contiguous, at fortran/expr.c:5323 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With this testcase : $ cat z1.f90 program p real, target :: a real, pointer, contiguous :: b => a end $ gfortran-8-20170924 -c z1.f90 z1.f90:3:33: real, pointer, contiguous :: b => a 1 Error: 'b' at (1) has the CONTIGUOUS attribute but is not an array pointer or an assumed-shape or assumed-rank array $ gfortran-8-20171008 -c z1.f90 f951: internal compiler error: Segmentation fault #... $ gfortran-8-20180107 -c z1.f90 f951: internal compiler error: Segmentation fault 0xb8c1ef crash_signal ../../gcc/toplev.c:325 0x6aa5ec gfc_is_simply_contiguous(gfc_expr*, bool, bool) ../../gcc/fortran/expr.c:5323 0x6ab4ce gfc_check_pointer_assign(gfc_expr*, gfc_expr*) ../../gcc/fortran/expr.c:3916 0x6ab8fa gfc_check_assign_symbol(gfc_symbol*, gfc_component*, gfc_expr*) ../../gcc/fortran/expr.c:4005 0x68dd1c add_init_expr_to_sym ../../gcc/fortran/decl.c:1693 0x697193 variable_decl ../../gcc/fortran/decl.c:2589 0x697193 gfc_match_data_decl() ../../gcc/fortran/decl.c:5692 0x6f1d39 match_word_omp_simd ../../gcc/fortran/parse.c:93 0x6f542e match_word ../../gcc/fortran/parse.c:376 0x6f542e decode_statement ../../gcc/fortran/parse.c:376 0x6f7264 next_free ../../gcc/fortran/parse.c:1226 0x6f7264 next_statement ../../gcc/fortran/parse.c:1458 0x6f8b4c parse_spec ../../gcc/fortran/parse.c:3836 0x6fb003 parse_progunit ../../gcc/fortran/parse.c:5649 0x6fc5e4 gfc_parse_file() ../../gcc/fortran/parse.c:6189 0x742cef gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204