static_math icon indicating copy to clipboard operation
static_math copied to clipboard

Compilation failures with GCC 9

Open Morwenn opened this issue 6 years ago • 2 comments

Some of the tests that passed start failing with GCC 9:

  • The smath::exp tests in cmath.cpp
  • The smath::cos tests in trigonometry.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?

Morwenn avatar Sep 21 '19 18:09 Morwenn

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.

theLOLflashlight avatar Oct 10 '19 13:10 theLOLflashlight

Hum, that's unfortunate, I wish I could avoid having to bypass compiler bugs ^^'

Morwenn avatar Oct 10 '19 13:10 Morwenn