[flang-commits] [flang] [flang] Complete implementation of OUT_OF_RANGE() (PR #89334)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Fri Apr 19 12:35:48 PDT 2024
================
@@ -108,7 +108,28 @@ static constexpr int PrecisionOfRealKind(int kind) {
}
}
-template <int BINARY_PRECISION> class RealDetails {
+// RealCharacteristics is constexpr, but also useful when constructed
+// with a non-constant precision argument.
+class RealCharacteristics {
+public:
+ explicit constexpr RealCharacteristics(int p) : binaryPrecision{p} {}
+
+ RT_OFFLOAD_VAR_GROUP_BEGIN
----------------
vzakhari wrote:
nit: this (and the closing marker) should not be needed. It was only required for `static` vars.
https://github.com/llvm/llvm-project/pull/89334
More information about the flang-commits
mailing list