From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE6A93947C01; Thu, 11 Jun 2020 13:34:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE6A93947C01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591882482; bh=6azcIygakrGtOw0tuSxrDmjoHvC2TzWm7u/6lKMExxA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=y3LGGSHZ6w2j6Ufuuht2qwLU8FcLz/IKL2CqjD0ZwwD+Jy4vLh4fQHHKTAIyDiABS KB5NyTbPZLbV8NvZbNahvMDY2fvOyH+Wi1XqFxjn9WluG5lZ0VLml6qCktCoh+Gbnd 2e0CTWZTRu7tM94T/vbZZVz6lHzsyfIMKuwvor2I= From: "longb at cray dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95640] gfortran ieee_selected_real_kind returns 10 Date: Thu, 11 Jun 2020 13:34:42 +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: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: longb at cray dot com X-Bugzilla-Status: UNCONFIRMED 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 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, 11 Jun 2020 13:34:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95640 --- Comment #1 from Bill Long --- The main problem here is that selected_real_kind and ieee_selected_real_kind have different specifications. The ieee_selected_real_kind requires a KIND value corresponding to an IEEE floating format, whereas selected_real_kind = is only limited to formats supported by the processor, including non-ieee form= ats, like the x87 80-bit format. (Which, apparently, even the Intel compiler no longer supports.)=20 The expected output from gfortran would be > gfortran test.f90 > ./a.out selected_real_kind(16) =3D 10 ieee_selected_real_kind(16) =3D 16=