|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard |
Date: | Thu, 13 Jan 2022 12:16:36 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55 |
Follow-up Comment #7, bug #61812 (project octave): I was mainly concerned about public headers. I didn't check our build system. But ideally we'd check that Octave is compiled with GNU extensions (something like `-std=gnu++11` if not enabled by default)... Afaics, `atan` is not `constexpr`. See: https://en.cppreference.com/w/cpp/header/cmath I think it is a bug in GCC that it accepts that (invalid) syntax. I believe I came across this before and it is (rightfully) failing with clang++. (But I might be misremembering...) _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61812> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |