From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9205C384D176; Thu, 20 Oct 2022 18:51:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9205C384D176 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666291861; bh=rn9oNwrFrHfVEW30Gyf+i1eRA4L/auHw/nqkCN0up3I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Mz3eTTmK4Vp9mqArCauf3KKY0RPBAdzZBmUnGpbDuZwg9zAObZNWjgtzqVk30k/mI djNgMf0Y/Q8KuVh9ghg1iC4coye6wdPk1+X6hzQdOd/DAiFZnyEgO6/SRn/owg3doN 0j8lEk/95JOAYMRDJKBKmR3/qgQl2DQ4+eXpc1vA= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107317] [10/11/12/13 Regression] ICE in emit_redzone_byte, at asan.cc:1508 Date: Thu, 20 Oct 2022 18:51:01 +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: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D107317 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #2 from anlauf at gcc dot gnu.org --- A few comments: the testcase should rather be a subroutine; it will no long= er fail once we manage to make variables in the main implicit-save... ;-) So a better testcase: subroutine p real :: a(1:1000000, 200) call s (a(1:2000000, : )) end We do not need optimization; the important flag is "-finline-arg-packing". The other flags (-m32 -fsanitize=3Daddress -frecursive) are needed. Adding a "save :: a" also avoids the ICE.=