[flang-commits] [flang] [flang] Fix compilation errors due to new clang template requirements (PR #94204)

David Spickett via flang-commits flang-commits at lists.llvm.org
Mon Jun 3 03:19:33 PDT 2024


================
@@ -381,13 +381,14 @@ Expr<Type<TypeCategory::Real, KIND>> FoldIntrinsicFunction(
                 std::move(funcRef),
                 ScalarFunc<T, T, TBY>(
                     [&](const Scalar<T> &x, const Scalar<TBY> &y) -> Scalar<T> {
-                      ValueWithRealFlags<Scalar<T>> result{x.
+                      ValueWithRealFlags<Scalar<T>> result{
+                          x.
 // MSVC chokes on the keyword "template" here in a call to a
 // member function template.
 #ifndef _MSC_VER
-                                                           template
+                          template
 #endif
-                                                           SCALE(y)};
+                          SCALE<Scalar<TBY>>(y)};
----------------
DavidSpickett wrote:

clang-format complains about the whitespace here, hence the change. The intent of the change is still clear, so I included it.

https://github.com/llvm/llvm-project/pull/94204


More information about the flang-commits mailing list