[flang-commits] [PATCH] D83142: [flang] Make 'num_images()' intrinsic

Tim Keith via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 6 12:54:17 PDT 2020


tskeith added inline comments.


================
Comment at: flang/test/Semantics/num_images.f90:14
+  !ERROR: too many actual arguments for intrinsic 'num_images'
+  print *, num_images(3.4)
+
----------------
Why is the error "too many actual arguments" rather than incorrect type?


================
Comment at: flang/test/Semantics/num_images.f90:22
+  !ERROR: unknown keyword argument to intrinsic 'num_images'
+  print *, num_images(team_number=3.4)
+
----------------
Similar question here: `team_number` isn't an unknown keyword argument. The value has the wrong type.

Are these bad error messages found with other intrinsics or unique to `num_images?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83142/new/

https://reviews.llvm.org/D83142





More information about the flang-commits mailing list