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: unassignedb...@nondot.org
Reporter: narom...@anl.gov
CC: david.tr...@arm.com, jper...@nvidia.com,
kirankuma...@gmail.com, llvm-bugs@lists.llvm.org,
sscalp...@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@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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs