We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9371986 + 8e6edc8 commit 30868f8Copy full SHA for 30868f8
1 file changed
include/fast_float/float_common.h
@@ -207,7 +207,11 @@ using parse_options = parse_options_t<char>;
207
// to a no-op elsewhere (e.g. pre-C++20 MSVC, which has no equivalent hint).
208
#ifdef __has_cpp_attribute
209
#if __has_cpp_attribute(unlikely) >= 201803L
210
-#define FASTFLOAT_USE_UNLIKELY_ATTR 1
+// g++-9 hits hits this branch, but then fails to compile
211
+// [[unlikely]]. This happens only with g++-9.
212
+#if !defined(__GNUC__) || (__GNUC__ != 9)
213
+#define FASTFLOAT_USE_UNLIKELY_ATTR
214
+#endif
215
#endif
216
217
0 commit comments