From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F0C63858C74; Fri, 3 Feb 2023 21:32:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F0C63858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675459927; bh=6Ai6ptjJku9HL/8iZICGmwfWQBT6C6kNqJmmZkGwmUM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bfvAlffzBNIr6BKhoFLkcLCqh/gMywfg7jNqgxh1nVppvMtMe0FMec/4JBOoBZo1z ZxTdNZBZDBqhIyYp4QamSxBEAb59RtykLIsyFv4iVtzhkXsQ4pqg2fNazzsM2VSxa/ /M6J9fgM+z3rFwYJGL/pu41tlOwVzP47M0XdBNfI= From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108663] Accepts invalid bug with pdtXXX Date: Fri, 03 Feb 2023 21:32:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu 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: Message-ID: In-Reply-To: References: 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 --- Comment #1 from Steve Kargl -= -- > $ gfortran-13-20221218 -c z1.f90 # missing error > $ > $ gfortran-13-20230115 -c z1.f90 > z1.f90:12:7: >=20 > 12 | use m, only: t, pdtt, s > | 1 > internal compiler error: in check_complete_insertion, at hash-table.h:578 For the record, the entity 'pdtt' is not specified in the module. It is constructed by gfortran in=20 decl.cc(gfc_get_pdt_instance) when parsing a parameterized derived type. The symbol pdtt means PDT type t, and it appears to inserted into the namespace. A likely better name would have been _PDT_t, because the leading underscore means the name cannot conflict with a user's code and gfortran downcases all parsed code so PDT shows that the symbol is artificial.=