From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CE7A33858D28; Sun, 9 Apr 2023 00:31:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CE7A33858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681000260; bh=z8Eekglem7KGkOlPB16c/mI5OKFn0e20I6m48v7rhuI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=foZbHnMcz+RL6DMG/EE/1vJ90PiTw+tuJW5uW+CAA9Ktefdeh37QAmpm+X25kA2Bl 0+LfwW+lv/QvYeH00NodyfUEMKUahHiI6Re589u5ZwWQtZ1ShNjl6Nt0px+M4H55SY 8/lNFh713pMP7qCQ1kH0+Ea0Rrhh6q0ttnOfY08I= From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109453] UBOUND incorrect when used in declartion of another array Date: Sun, 09 Apr 2023 00:31:00 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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: cc 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=3D109453 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- Works for me. gfcx -o z -O a.f90 -fcheck=3Dall && ./z 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 21 19 -1 1 20 19 0 hotrats:kargl[321] valgrind ./z =3D=3D50637=3D=3D Memcheck, a memory error detector =3D=3D50637=3D=3D Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward = et al. =3D=3D50637=3D=3D Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyr= ight info =3D=3D50637=3D=3D Command: ./z =3D=3D50637=3D=3D=20 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 21 19 -1 1 20 19 0 =3D=3D50637=3D=3D=20 =3D=3D50637=3D=3D HEAP SUMMARY: =3D=3D50637=3D=3D in use at exit: 0 bytes in 0 blocks =3D=3D50637=3D=3D total heap usage: 20 allocs, 20 frees, 9,661 bytes allo= cated =3D=3D50637=3D=3D=20 =3D=3D50637=3D=3D All heap blocks were freed -- no leaks are possible =3D=3D50637=3D=3D=20 =3D=3D50637=3D=3D For lists of detected and suppressed errors, rerun with: = -s =3D=3D50637=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 fr= om 0)=