static_math
static_math copied to clipboard
Compilation failures with GCC 9
Some of the tests that passed start failing with GCC 9:
- The
smath::exptests incmath.cpp - The
smath::costests intrigonometry.cpp
They fail with issues such as the following one:
‘((double)1 + 2.0e+0)’ is not a constant expression
I didn't implement these functions so I'm not sure why they're failing now. @theLOLflashlight any idea why it is failing if you're still around?
As far as I know ((double)1 + 2.0e+0) IS a constant expression. This is perhaps an issue with the compiler. I ran into similar issues when writing the original code on a previous version of msvc but I think those are fixed now. I'd try reporting this as a compiler bug.
Hum, that's unfortunate, I wish I could avoid having to bypass compiler bugs ^^'