[flang-commits] [flang] After pr75525 i was not able to build receiving error: decimal-to-bin… (PR #84702)
Nicklas Boman via flang-commits
flang-commits at lists.llvm.org
Sun Mar 10 16:06:40 PDT 2024
https://github.com/smurfd created https://github.com/llvm/llvm-project/pull/84702
After pr75525 i was not able to build receiving error: `decimal-to-binary.cpp:381:24: error: called object type 'float' is not a function or function pointer`
this include solves it though.
https://github.com/llvm/llvm-project/blob/ea697dcc2ad9e6a1cc313d792b485d9218a943a1/flang/lib/Decimal/decimal-to-binary.cpp#L381
(i do use the [netbsd](https://pkgsrc.smartos.org) llvm on macos, shouldnt matter though)
>From 6be3c79c0ce62adb35f95f31165f92f808ccc86e Mon Sep 17 00:00:00 2001
From: Nicklas Boman <smurfd at gmail.com>
Date: Mon, 11 Mar 2024 00:01:30 +0100
Subject: [PATCH] After pr75525 i was not able to build receiving error:
decimal-to-binary.cpp:381:24: error: called object type 'float' is not a
function or function pointer
---
flang/lib/Decimal/decimal-to-binary.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/flang/lib/Decimal/decimal-to-binary.cpp b/flang/lib/Decimal/decimal-to-binary.cpp
index c5cdb72e355f62..2a251e21ebb700 100644
--- a/flang/lib/Decimal/decimal-to-binary.cpp
+++ b/flang/lib/Decimal/decimal-to-binary.cpp
@@ -11,6 +11,7 @@
#include "flang/Common/leading-zero-bit-count.h"
#include "flang/Decimal/binary-floating-point.h"
#include "flang/Decimal/decimal.h"
+#include "flang/Evaluate/real.h"
#include <cinttypes>
#include <cstring>
#include <ctype.h>
More information about the flang-commits
mailing list