From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B75313858C2A; Fri, 19 Jan 2024 17:45:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B75313858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705686306; bh=A+kkEHRFa1ECY4Dad0Fo2LMZleZVPlOmk+gHnzEsLms=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kLt8UFI7sJ87h9ZGixwjmTF8hxgJfvfpihXvXFMEwejwFSSt+foW5mCZ0930yxaB/ lViAPwMT7TWboaAuOvQ9y+V4xK/0fe09uUC1KLxXUso90rCMD+Qu+kZypWvRcuyhc0 15pQ/11OOsvC6imCqy/zYWnVuUCrgsJfRCelYxks= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/113503] [14 Regression] xtb test miscompilation starting with r14-870 Date: Fri, 19 Jan 2024 17:45: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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113503 --- Comment #2 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #1) > When trying to further reduce the code I get either an ICE or an > uninitialized-warning for: program xtb implicit none type :: TSolvInput character(len=3D:), allocatable :: solvent end type character(len=3D20) :: solvents(1) =3D 'h2o' type(TSolvInput) :: x ! x =3D TSolvInput(solvent=3D solvents(1)) ! ICE x =3D TSolvInput(solvent=3Dtrim(solvents(1))) ! Warning end So it clearly comes from the constructor.=