[flang-commits] [flang] [flang] Temporary include variant.h in enum-class.h. (PR #134460)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Fri Apr 4 16:07:11 PDT 2025


https://github.com/vzakhari created https://github.com/llvm/llvm-project/pull/134460

I am having problems building Fortran runtime for CUDA
after #134164. I need more time to investigate it,
but in the meantime including variant.h (or any header
that eventually includes a libcudacxx header) resolves
the issue.


>From 4367d234784ad889d1f5237f3c81a8841aa3b97f Mon Sep 17 00:00:00 2001
From: Slava Zakharin <szakharin at nvidia.com>
Date: Fri, 4 Apr 2025 16:04:32 -0700
Subject: [PATCH] [flang] Temporary include variant.h in enum-class.h.

I am having problems building Fortran runtime for CUDA
after #134164. I need more time to investigate it,
but in the meantime including variant.h (or any header
that eventually includes a libcudacxx header) resolves
the issue.
---
 flang/include/flang/Common/enum-class.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flang/include/flang/Common/enum-class.h b/flang/include/flang/Common/enum-class.h
index 41575d45091a8..8c254c8bc6a70 100644
--- a/flang/include/flang/Common/enum-class.h
+++ b/flang/include/flang/Common/enum-class.h
@@ -17,6 +17,7 @@
 #ifndef FORTRAN_COMMON_ENUM_CLASS_H_
 #define FORTRAN_COMMON_ENUM_CLASS_H_
 
+#include "flang/Common/variant.h"
 #include <array>
 #include <string>
 



More information about the flang-commits mailing list