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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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@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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to