[flang-commits] [flang] [flang][CUDA] Clarify host and device call diagnostics (PR #232850)
Andre Kuhlenschmidt via flang-commits
flang-commits at lists.llvm.org
Fri Oct 16 11:51:15 PDT 2026
================
@@ -272,10 +272,10 @@ contains
attributes(host,device) subroutine misleading_bindc_guard(n)
integer, intent(inout) :: n
if (on_device()) then
- !ERROR: 'device_only' may not be called in host code
+ !ERROR: The DEVICE procedure 'device_only' may not be called in HOST,DEVICE code without an ON_DEVICE() guard
----------------
akuhlens wrote:
Yes it is.
https://github.com/llvm/llvm-project/pull/232850
More information about the flang-commits
mailing list