Feedback
Reachable code after loops incorrectly receives unreachable-code warnings
- Status
- Accepted
- Fixed in
- -
- Area
- compiler
- Source discussion
- -
- Last updated
- 2026-11-14
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
The analyser can incorrectly report reachable code after a loop as unreachable when the loop body ends with Return, Continue or Exit. Code after the loop remains reachable when the loop has no iterations, all iterations continue, or the loop exits normally.
Keep valid warnings for genuinely unreachable statements inside the loop or after an unconditional return.