From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 560203858CDB; Sat, 18 May 2024 16:01:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 560203858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716048093; bh=jVV/dumc5MeiNceTbIIqZo1tAPh454bxg4WawkTkKRc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qs7AkI6dOObuLH190CgJ9so2ClJJ1svlUJXu6moiPFDWAX1ImAKSCE5kt7ntumGqR 8SJqlPhvs54ZKTgnjjkJLTCn5g5EdOZhbjWOvM1/BXAgMzCWQ6QN93W/IkWA7i5ndp zjiyDUIhejLa9q2kxnci33Ol1/6bysxxDeMyeSyc= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/44744] Missing -fcheck=bounds diagnostic for function assignment with tmp array Date: Sat, 18 May 2024 16:01:33 +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: 4.6.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D44744 --- Comment #5 from Tobias Burnus --- (In reply to Tobias Burnus from comment #4) > Another variant from lsdalton =E2=80=93 or rather the BTW: I have not verified that the cause is the same (temporary variable), b= ut it seems to be likely. When replacing the 'A(i,:,:)' on the LHS with 'B(:,:)', gfortran does diagn= ose the too large RHS.=