[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e5b4d7b 2/4: Note a gcc defect report
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e5b4d7b 2/4: Note a gcc defect report |
Date: |
Thu, 30 Apr 2020 15:38:44 -0400 (EDT) |
branch: master
commit e5b4d7bf92de5eabbfbeba3eb9d5b849e3d975b3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Note a gcc defect report
---
financial_test.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/financial_test.cpp b/financial_test.cpp
index 75a0df4..da9d22a 100644
--- a/financial_test.cpp
+++ b/financial_test.cpp
@@ -191,6 +191,9 @@ int test_main(int, char*[])
static double const i = .05;
static double const one_plus_i = 1.0 + i;
std::vector<double> accum_p(p.size());
+// Avoid a gcc-9 anomaly--see:
+// https://lists.nongnu.org/archive/html/lmi/2020-04/msg00024.html
+// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94867
#if defined __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnull-dereference"