[llvm-bugs] [Bug 48144] New: keyword on iso_c_binding intrinsic not allowed

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 10 15:12:30 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48144

            Bug ID: 48144
           Summary: keyword on iso_c_binding intrinsic not allowed
           Product: flang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          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 24146
  --> https://bugs.llvm.org/attachment.cgi?id=24146&action=edit
keyword not allowed for ISO_C_BINDING intrinsic

gFortran and ifort allow this to reduced test case to compile without warning
or errors.

Flang front-end does not accept it.

[naromero at naromero-desktop bugs]$ flang -c optional_arg.F90
optional_arg.F90:8:30: error: Keyword 'shape=' may not appear in a reference to
a procedure with an implicit interface
    call c_f_pointer(cptr,iptr,shape=(/csize/))

I understand the error -- but if you are using an intrinsic from the
iso_c_bindings, shouldn't the procedure interface be considered explicit.

-- 
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/20201110/cc7fd4c4/attachment.html>


More information about the llvm-bugs mailing list