From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3F1763858C20; Fri, 3 Feb 2023 20:42:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F1763858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675456942; bh=IO2jUgT7mJUHPSIETXTsPc/Vx8hUaywOhnV8xmd5TDA=; h=From:To:Subject:Date:From; b=u9sHlZuw/VjB08MiRHSBZyN/eVJoYsAT21O7YTcrG4ksgOZA2SwlAEiim/s/AEltX msRd8ar7CKHXuMbHQ99yNa1noZ7T6VF1MJhyaNPHjUwAvErzoO30Z0xZjYKpyC9Im3 rAbO+uDAx1ub/StZywuHTbgYSYqy1OrqqBrgxXdI= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108663] New: Accepts invalid bug with pdtXXX Date: Fri, 03 Feb 2023 20:42:21 +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: 13.0 X-Bugzilla-Keywords: accepts-invalid, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc dependson 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108663 Bug ID: 108663 Summary: Accepts invalid bug with pdtXXX Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: accepts-invalid, ice-on-invalid-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: aoliva at gcc dot gnu.org, gscfq@t-online.de, jakub at gcc dot gnu.org, kargl at gcc dot gnu.org, marxin at gcc dot gnu.org, unassigned at gcc dot gnu.org Depends on: 108451 Target Milestone: --- The PR108451 testcase is accepted even when it should be rejected. +++ This bug was initially created as a clone of Bug #108451 +++ Started recently between 20221218 and 20230108, with special name pdtt : (gcc configured with --enable-checking=3Dyes) $ cat z1.f90 module m type t(n) integer, len :: n integer :: a(n) end type contains subroutine s(x) type(t(2)) :: x end end program p use m, only: t, pdtt, s type(t(2)) :: y call s(y) end $ gfortran-13-20221218 -c z1.f90 # missing error $ $ gfortran-13-20230115 -c z1.f90 z1.f90:12:7: 12 | use m, only: t, pdtt, s | 1 internal compiler error: in check_complete_insertion, at hash-table.h:578 0x92fc0b hash_table::check_complete_insertion() const ../../gcc/hash-table.h:578 0x92fc0b hash_table::find_slot_with_hash(char const* const&, unsigned int, insert_option) ../../gcc/hash-table.h:1042 0x92c57e gfc_trans_use_stmts ../../gcc/fortran/trans-decl.cc:5329 0x92d3a6 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.cc:7837 0x89ef8e translate_all_program_units ../../gcc/fortran/parse.cc:6721 0x89ef8e gfc_parse_file() ../../gcc/fortran/parse.cc:7027 0x8ed3af gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108451 [Bug 108451] [13 Regression] ICE in check_complete_insertion, at hash-table.h:578=