From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 65E9C397247B; Thu, 10 Sep 2020 18:57:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65E9C397247B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599764268; bh=RoPYsiNtJ2+PXCZs8fR3nRXb/nPze3mQwRs5vwox+UI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lo9fz5JxWlHV3aPmdJw/k8/BTx/7NsFGBJLA8xdw1k3Ty2Ws98KVs9dhGG3fwVwRW sM8jJpAhQ27oFWnnSQSZ6MzXKoKLXDx5pVLMEAnM5POd+PzQxun8C7Y4BtqeAK8CMT Bz1tQnd4ZsFktfK9S1PS7JmBH2U5k4LXmgZwRlQI= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97009] [9/10/11 Regression] Inlining with non-standard selected_int_kind leads to errors Date: Thu, 10 Sep 2020 18:57:48 +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: 10.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone everconfirmed cf_known_to_fail short_desc keywords cf_reconfirmed_on bug_status cf_known_to_work priority 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 18:57:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97009 anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.4 Ever confirmed|0 |1 Known to fail| |11.0 Summary|Inlining with non-standard |[9/10/11 Regression] |selected_int_kind leads to |Inlining with non-standard |errors |selected_int_kind leads to | |errors Keywords| |wrong-code Last reconfirmed| |2020-09-10 Status|UNCONFIRMED |NEW Known to work| |8.4.1 Priority|P3 |P4 --- Comment #2 from anlauf at gcc dot gnu.org --- It appears to be a combination of inlining and optimizations that are prese= nt at -O2 but not at -O1. OK: gfc-11 pr97009.f90 -O1 -finline gfc-11 pr97009.f90 -O2 -fno-inline Not OK: gfc-11 pr97009.f90 -O2 -finline The output in the latter case appears to be random junk. But valgrind does not show anything for me, nor does ASAN. Could also be some ME issue.=