[flang-commits] [flang] [flang] Complete implementation of OUT_OF_RANGE() (PR #89334)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Fri Apr 19 12:38:45 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
----------------
klausler wrote:

Done; thanks!

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


More information about the flang-commits mailing list