Index: flang/lib/Lower/OpenMP.cpp =================================================================== --- flang/lib/Lower/OpenMP.cpp +++ flang/lib/Lower/OpenMP.cpp @@ -378,7 +378,7 @@ if (clauses && !outerCombined) privatizeVars(converter, *clauses); - if (std::is_same_v) { + if constexpr (std::is_same_v) { threadPrivatizeVars(converter, eval); if (clauses) genCopyinClause(converter, *clauses);