And this is too minor a thing to add a special compiler option just for this I guess? I'd love to look into this and contribute with a PR if it's worth it.
But thank you! I've been looking everywhere for a workaround or explanation.