Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2000-10-26
08:23 • Closed ticket [218523ffff]: out of line compilation of foreach corrupts the exce... artifact: aa1bb5aeb7 user: welch
01:01 • New ticket [218523ffff]. artifact: 135dc132dd user: nobody

out of line compilation of foreach corrupts the exception ra

Closed / Fixed218523ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:40
OriginalBugID: 884 Bug
Version: 8.1a2
SubmitDate: '1998-12-01'
LastModified: '1998-12-01'
Severity: CRIT
Status: Released
Submitter: stanton
ChangedBy: stanton
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1998-12-01'
FixedInVersion: 8.1b1
ClosedDate: '2000-10-25'


The following script demonstrates the bug:

    proc foreach-exception-test {} {
foreach array(index) [list 1 2 3] break
foreach array(index) [list 1 2 3] break
foreach scalar [list 1 2 3] break
    }
foreach-exception-test

This fails claiming that break was called outside of a loop.

The bug is that the compile proc for foreach corrupts the nesting level information if it fails to compile inline.
welch Closed ticket [218523ffff]. [History diff]2000-10-26 08:23:19
Log in (anonymous is fine) to add a comment.