When upgrading to 1.9.2 from 1.9.1 the following code no longer compiles:
inline void someFunc()
{
static const float scale = 1.0f / 8.0f;
static const float halfScale = 0.5f * scale;
// continue....
}
producing the error:
Error: Initializer for static variable "halfScale" must be a constant.
static const float halfScale = 0.5f * scale;
The code compiles without error in 1.9.1 and previous versions. Should
this have always been an error?
-Brian
--
You received this message because you are subscribed to the Google Groups
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.