From 4367d234784ad889d1f5237f3c81a8841aa3b97f Mon Sep 17 00:00:00 2001 From: Slava Zakharin 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 #include