-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix compiler error on GCC 13 #1008
Conversation
This doesn't seem to fix it completely, I'm still seeing compiler errors in GCC 13.2.0. |
That's unfortunate. @lilleyse can you give us a sense of how important it is to you to find a solution to this? Because it seems like it could end up being relatively time consuming. |
FWIW, I upgraded my WSL to Ubuntu 24.04:
Then did a clean build of cesium-native from main:
And everything built successfully. |
I think |
I pushed a change that ignores |
Oh right, not sure how I forgot about that @lilleyse. So yes, when I build the Release configuration, I get the same error you're seeing. However, I don't get that error with the RelWithDebInfo configuration. |
I'm merging this. I'm not thrilled with needing to disable the warning, but the scope of it is extremely limited so it's the best alternative for now. Thanks @lilleyse! |
This fixes the std::optional / std::variant related compiler errors that @lilleyse saw on GCC 13.
I was able to reproduce it on v13.1.0 on Ubuntu 22.04 (via WSL2) in the Release configuration, and this change fixed it for me. As far as I can tell, the previous code was valid and this is a GCC bug, but the code was a little unusual before and so the change here is an improvement.
Strangely enough, I can't seem to get it to fail to compile in the same way on the GH Actions
ubuntu-24.04
runner withCC=gcc-13
andCXX=g++-13
. But on that runner, after it compiles successfully, one of the tests fails:We've seen this particular test fail elsewhere before, but can't entirely explain it.