Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e348ca4e953c1e39eb142b43e263010c6e9f0bd3
Ticket: 735055ffffffffffffffffffffffffffffffffff
compile-3.5 improper test
User & Date: dgp on 2003-05-09 06:40:53
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Test compile-3.5 was added to check that
    Bug 705496 was fixed.  Indeed the panic
    reported there no longer happens.
    
    But look at the test:
    
    test compile-3.5 {...} {
        proc foo {} {
            catch {
                if {[a]} {
                    if b {}
                }
            }
        }
        list [catch foo msg] $msg
    } {1 {invalid command name "a"}}
    
    Shouldn't the correct result be {0 1} and
    not {1 {invalid command name "a"}} ?
    
    Since the test currently passes, it seems
    that in fact [foo] is not producing the
    correct result.
    
    I believe that saving/restoring 
    envPtr->codeNext in addition to
    envPtr->numCommands (done to
    fix Bug 705496) will make the test
    fail, but make the code do the
    correct thing.
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "compile-3.5 improper test"
  11. type changed to: "Bug"