Split from #32913 - Nested try blocks with Exit cause assembler error
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
Split from issue #32913. If you have the following construct, the assembly of the source code fails because the label that Exit is meant to jump to is never created:
try
...
except
try
...
Exit;
finally
...
end;
end;
The following patch fixes this issue.
Steps to reproduce:
See above.
Additional information:
This bug was previously only visible if there was no code was present in the try part of the try..except block, because that arrangement raised an internal error instead.
Mantis conversion info:
- Mantis ID: 35841
- OS: Microsoft Windows
- OS Build: 10 Professional
- Build: r42348
- Platform: x86_64-win64
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 47066 (#73c041a8)
- Monitored by: » Cyrax (Cyrax)