[llvm-bugs] [Bug 47425] New: return type for isnan instrinsic math function causes problem in conditional
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 4 15:05:52 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47425
Bug ID: 47425
Summary: return type for isnan instrinsic math function causes
problem in conditional
Product: flang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedbugs at nondot.org
Reporter: naromero at anl.gov
CC: David.Truby at arm.com, jperier at nvidia.com,
kirankumartp at gmail.com, llvm-bugs at lists.llvm.org,
sscalpone at nvidia.com
Created attachment 23930
--> https://bugs.llvm.org/attachment.cgi?id=23930&action=edit
conditional on return value is isnan
Assuming isnan is a standard Fortran intrinsic math function, this short
program fails to compile with Flang. It compiles successfully with PGI, ifort,
and gfortran.
[naromero at naromero-desktop bugs]$
/nfs/gce/projects/naromero-workspace/llvm-master/bin/flang -c testisnan.F
testisnan.F:6:11: error: Must have LOGICAL type, but is INTEGER(4)
if (isnan(dum)) write (*,*) 'dum is NaN'
^^^^^^^^^^
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200904/77ecc75d/attachment.html>
More information about the llvm-bugs
mailing list