https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80161

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jeff Hammond from comment #5)
> Thanks for the comments.  Indeed, I made all the changes to the containing
> project to compile in C++ and the problem went away.  I will likely just
> switch to the preprocessor solution for now.

Or you could use enum { scale = 1 }; instead of const int scale = 1;
That ought to work with both C and C++.

> For posterity, I found that Clang has the same issue, whereas ICC (Intel)
> does not.
> 
> Feel free to close this as WONTFIX/INVALID unless you think it should remain
> open to motivate the OpenMP IPA changes in GCC 8+.

Yeah, I'd keep this open for GCC 8+, we do want to implement the IPA changes
there.

Reply via email to