Open SamRodri opened 4 days ago
Test project here: https://github.com/SamRodri/miscomp-issue
Build from Github Ubuntu, Windows and maOS also miscompile. Working on reducing the test now.
Testing with "thin"
again, it looks like it works actually, both local builds and from GitHub runners, I may have messed up the previous test.
Edit: tested the template gain, it failed with "thin"
too.
Building a project that depends on
zng
withrelease-lto
profile for targetaarch64-linux-android
causes miscompilation of this function:The function prints
Some(_)
correctly if compiled at the start of main, but printsNone
if compiled on a touch event handler.I tested both
"fat"
and"thin"
LTO, both can fail. I have not managed to reduce the reproducer project, just replacing the dependencies to the minimal required to compile causes it to always work.