Skip to content
Tcl Source Code History Of Ticket 218995
Login

History Of Ticket 218995

Artifacts Associated With Ticket 218995

  1. Ticket change [e4086d6210] (rid 87893) by nobody on 2000-10-26 01:09:05:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3736 Bug
      Version: 8.2.2
      SubmitDate: '1999-12-01'
      LastModified: '1999-12-01'
      Severity: CRIT
      Status: Released
      Submitter: techsupp
      ChangedBy: hobbs
      OS: All
      FixedDate: '1999-12-01'
      FixedInVersion: 8.2.3
      ClosedDate: '2000-10-25'
      
      
      Name:
      
      Don Porter
      
      
      
      CVS:
      
      $Id: tclCompile.c,v 1.17 1999/10/21 02:16:22 hobbs Exp $
      
      
      
      ObservedBehavior:
      
      % expr + {[incr]}
      
      GetCmdLocEncodingSize: bad code length
      
      Abort
      
      
      
      DesiredBehavior:
      
      % expr + {[incr]}
      
      wrong # args: should be "incr varName ?increment?"
      
      
      
      Patch:
      
      Index: generic/tclCompile.c
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/generic/tclCompile.c,v
      
      retrieving revision 1.17
      
      diff -c -r1.17 tclCompile.c
      
      *** tclCompile.c        1999/10/21 02:16:22     1.17
      
      --- tclCompile.c        1999/12/01 15:48:34
      
      ***************
      
      *** 882,887 ****
      
      --- 882,896 ----
      
                                  } else if (code == TCL_OUT_LINE_COMPILE) {
      
                                      /* do nothing */
      
                                  } else { /* an error */
      
      +  
      
      +                               /* Since there was a compilation error,
      
      +                                * the last command did not get compiled
      
      +                                * into (*envPtr).  We must decrement
      
      +                                * the number of commands claimed to be
      
      +                                * in (*envPtr).
      
      +                                */
      
      + 
      
      +                               envPtr->numCommands--;
      
                                      goto error;
      
                                  }
      
                              }
      
      Index: tests/expr.test
      
      ===================================================================
      
      RCS file: /cvsroot/tcl/tests/expr.test,v
      
      retrieving revision 1.6
      
      diff -c -r1.6 expr.test
      
      *** expr.test   1999/08/19 03:00:13     1.6
      
      --- expr.test   1999/12/01 15:48:37
      
      ***************
      
      *** 711,716 ****
      
      --- 711,719 ----
      
            set a yellow
      
            expr 1?{$a}:0
      
        } yellow
      
      + test expr-20.6 {handling of compile error in trial compile} {
      
      +     list [catch {expr + {[incr]}} msg] $msg
      
      + } {1 {wrong # args: should be "incr varName ?increment?"}}
      
        
      
        # cleanup
      
        if {[info exists a]} {
      
      
      
      PatchFiles:
      
      generic/tclCompile.c
      
          tests/expr.test
      
      
      
      
      
      Fix will be in 8.2.3. 
      -- 12/01/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to: "panic in [expr + {[incr]}]"
    11. type initialized to: "Bug"
  2. Ticket change [b446c11575] (rid 125002) by welch on 2000-10-26 08:33:08:

    1. closedate changed to: "2000-10-26T01:33:08"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"