From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B9A11383542C; Thu, 4 Mar 2021 13:03:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9A11383542C From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99355] -freal-X-real-Y -freal-Z-real-X promotes Z to Y Date: Thu, 04 Mar 2021 13:03:13 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: REOPENED 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 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, 04 Mar 2021 13:03:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99355 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- CC|dominiq at lps dot ens.fr | --- Comment #10 from Dominique d'Humieres --- My email address has changed: dhumieres dot dominique at free dot fr It is not registered in bugzilla. % gfc pr57871.f90=20 % ./a.out kind(1.0_p1) 4 precision(1.0_p1) 6 kind(1.0_dp) 8 precision(1.0_dp) 15 So without option kind(1.0_p1) is 4, should not it be converted to 16 with -freal-4-real-16? The other alternative is that -freal-4-real-16 promotes a= ll real(4) to real(16), then the smallest selected_real_kind(1) will be 8 (as expected by the reporter), then kind(1.0_p1) will be real(8).=