From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A74673858C78; Fri, 19 Jan 2024 16:59:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A74673858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705683561; bh=516E5N913eKG5z59y3Rm4qbdHtyzCQ9u7bCLGFUKBtM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y/hBF1k+T+L7A4DhJm63c3hOxZsx7sH+olVltYMXdXQvxiBgRV4ikQedOeH6UQp+2 Uq70jbY/oA/LR9/JNLYGWyJQmCsquD2tzkaY6F0W1ZAmnEzaCIQvVuq3WeUJBz2ZDC Ie6Sm6KCySDUTxUs7fSa6i/WShzTzQWPne4ZnYEM= 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 16:59:21 +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 #1 from anlauf at gcc dot gnu.org --- 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' ! call addSolvationModel(TSolvInput(solvent=3D solvents(1))) ! ICE call addSolvationModel(TSolvInput(solvent=3Dtrim(solvents(1)))) ! Warning contains subroutine addSolvationModel(input) type(TSolvInput), intent(in) :: input end end=