You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am in the process of packaging your library to xmake-repo to make it easily accessible to more developers.
During this process, the automated CI detected build failures on 7 configurations, primarily on mingw and some Linux environments (Archlinux, Fedora). You can see the complete CI log and relevant discussion here.
Reproduce
This issue can be reproduced by running the whole repo in a mingw environment.
I personally prefer and use xmake. Of course, I believe that after some steps, you can also reproduce this with cmake. You can use whatever you want.
xmake f -p mingw --sdk=E:\msys64\mingw64
xmake run
Then you can get the error:
Possible Solution
I have limited capacity to debug the exact compiler issue, but the error obviously points to the friend operator== and != being unable to access the private member m_val. So, I would suggest using the error() function to get m_val avoiding this.
Maybe there a compiler bug, or the current implementations is not standard comfortable enough. Dispiting that, it seems no harm to change from m_val to error().
Activity
luadebug commentedon Jul 14, 2025
X1aomu commentedon Jul 15, 2025
Thank you for reporting.
Maybe there a compiler bug, or the current implementations is not standard comfortable enough. Dispiting that, it seems no harm to change from
m_valtoerror().Lets go ahead.
X1aomu commentedon Jul 15, 2025
@luadebug Could you share a link to that diff about CPP draft? Just to get more info.
Willaaaaaaa commentedon Jul 15, 2025
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2549r1.html#expected.void.eq