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
{{ message }}
Repository navigation
Nested switch break can cause EXCEPTION_ILLEGAL_INSTRUCTION #2479
Despite a nested break;, a switch is still considered to never break when they all return a value.
Causes EXCEPTION_ILLEGAL_INSTRUCTION in Debug and crashes in Release.
Tested in latest nightly.
classProgram{publicstaticintMain(String[]args){switch(0){case0:if(true){break;}return1;default:return2;}return0;// <-- "Unreachable code" warning in IDE}}
Activity