Reproduction:
staticint _intStatic;
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.AggressiveOptimization)]
public staticboolProblem()
{
[MethodImpl(MethodImplOptions.NoInlining)]
staticvoidThrow()
{
_intStatic = 1;
thrownewException();
}
_intStatic = 2;
try
{
Throw();
_intStatic = 2;
}
catch (Exception)
{
if (_intStatic == 2)
{
returntrue;
}
}
returnfalse;
}Call Problem().
Expected result: false.
Actual result: true.
Cause: each possible modification of globally visible memory in a protected region must induce a PHI in all reachable handlers.
Putting into Future for now as the bug is very old.
Reproduction:
Call
Problem().Expected result:
false.Actual result:
true.Cause: each possible modification of globally visible memory in a protected region must induce a PHI in all reachable handlers.
Putting into Future for now as the bug is very old.