From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6EDBE38708EC; Wed, 24 Feb 2021 17:30:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EDBE38708EC From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99255] New: ICE in gfc_dt_upper_string, at fortran/module.c:441 Date: Wed, 24 Feb 2021 17:30:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 17:30:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99255 Bug ID: 99255 Summary: ICE in gfc_dt_upper_string, at fortran/module.c:441 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to at least r5, with a missing attribute allocatable or pointer : (follow-up of pr95980) $ cat z1.f90 program p type t character(:), allocatable :: c end type class(t) :: x select type (y =3D> x) end select end $ cat z2.f90 program p type t character(:), allocatable :: c(:) end type class(t) :: x select type (y =3D> x) end select end $ gfortran-11-20210221 -c z1.f90 f951: internal compiler error: Segmentation fault 0xda031f crash_signal ../../gcc/toplev.c:327 0x6fecd0 gfc_dt_upper_string(char const*) ../../gcc/fortran/module.c:441 0x69e74a get_unique_type_string ../../gcc/fortran/class.c:490 0x69f191 get_unique_hashed_string ../../gcc/fortran/class.c:524 0x6a2678 gfc_build_class_symbol(gfc_typespec*, symbol_attribute*, gfc_array_spec**) ../../gcc/fortran/class.c:672 0x6f9393 gfc_match_select_type() ../../gcc/fortran/match.c:6449 0x719244 match_word ../../gcc/fortran/parse.c:65 0x719244 decode_statement ../../gcc/fortran/parse.c:428 0x71aa7c next_free ../../gcc/fortran/parse.c:1316 0x71aa7c next_statement ../../gcc/fortran/parse.c:1548 0x71c0eb parse_spec ../../gcc/fortran/parse.c:3967 0x71eebc parse_progunit ../../gcc/fortran/parse.c:5896 0x7205b1 gfc_parse_file() ../../gcc/fortran/parse.c:6437 0x76dbcf gfc_be_parse_file ../../gcc/fortran/f95-lang.c:212=