https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99060
Bug ID: 99060 Summary: [9/10/11 Regression] ICE in gfc_match_varspec, at fortran/primary.c:2411 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20200726 and 20200809 : $ cat z1.f90 program p real :: a print *, a%kind%n end $ gfortran-11-20200726 -c z1.f90 z1.f90:3:20: 3 | print *, a%kind%n | 1 Error: Expected expression in PRINT statement at (1) $ gfortran-11-20210207 -c z1.f90 f951: internal compiler error: Segmentation fault 0xc093ef crash_signal ../../gcc/toplev.c:327 0x6eaa63 gfc_match_varspec(gfc_expr*, int, bool, bool) ../../gcc/fortran/primary.c:2411 0x6ec2e1 gfc_match_rvalue(gfc_expr**) ../../gcc/fortran/primary.c:3849 0x6c0c4e match_primary ../../gcc/fortran/matchexp.c:157 0x6c0c4e match_level_1 ../../gcc/fortran/matchexp.c:211 0x6c0c4e match_mult_operand ../../gcc/fortran/matchexp.c:267 0x6c0e98 match_add_operand ../../gcc/fortran/matchexp.c:356 0x6c10ec match_level_2 ../../gcc/fortran/matchexp.c:480 0x6c1242 match_level_3 ../../gcc/fortran/matchexp.c:551 0x6c1334 match_level_4 ../../gcc/fortran/matchexp.c:599 0x6c1334 match_and_operand ../../gcc/fortran/matchexp.c:693 0x6c1522 match_or_operand ../../gcc/fortran/matchexp.c:722 0x6c15f2 match_equiv_operand ../../gcc/fortran/matchexp.c:765 0x6c16c4 match_level_5 ../../gcc/fortran/matchexp.c:811 0x6c0aa1 gfc_match_expr(gfc_expr**) ../../gcc/fortran/matchexp.c:870 0x6a8a69 match_io_element ../../gcc/fortran/io.c:3661 0x6ab345 match_io_list ../../gcc/fortran/io.c:3709 0x6ab744 match_io ../../gcc/fortran/io.c:4387 0x6af1ca gfc_match_print() ../../gcc/fortran/io.c:4443 0x6db9c1 match_word ../../gcc/fortran/parse.c:65