From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7DE5A3858D1E; Wed, 17 May 2023 01:09:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DE5A3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684285798; bh=OS2/WMbHJMLzSTAJs0TwCXGSftHS0aDjqDzrSWSYPQA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=m/7bDlv/yNM1y5hyi9it4ANVGsC8ZFTOB2I0SSGdHRlphhcLW07fN2TNJfPr7yiUm 0piNwee7kmMDJvORL2ZTLrzLRp9pwn7Hc2lOxygZOFjNxqKeVHoCbMHR9CvZprsrXU 2o4h2K8RObWVy0dTFQAquvtbFCVOWQbKNSK2irz4= From: "Gary.White at ColoState dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109865] different results when routine moved inside the contains statement Date: Wed, 17 May 2023 01:09:58 +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: og12 (devel/omp/gcc-12) X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Gary.White at ColoState dot edu X-Bugzilla-Status: WAITING 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=3D109865 --- Comment #14 from GARY.WHITE at ColoState dot edu --- Clarification on the last post. I'm compiling everything with -O3, except va09ad.f90. If va09ad.f90 is compiled with -O3, you get the bug. If va09ad.f90 is compiled with -O0, the code produces correct answers.=20 Since LAPACK is a common library, you should be able to duplicate the bug w= ith little difficulty by changing the makefile.=