Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 180597e567af17af4a37a4d43c949bdd83d004cc
Ticket: 218129ffffffffffffffffffffffffffffffffff
Compile fails on improper use of const
User & Date: nobody on 2000-10-26 00:53:28
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1994 Bug
    Version: 8.1
    SubmitDate: '1999-05-05'
    LastModified: '1999-12-03'
    Severity: CRIT
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: Other
    OSVersion: QNX 4.24
    Machine: NA
    FixedDate: '2000-10-25'
    ClosedDate: '1999-12-03'
    
    
    Name:
    David Corlette
    
    CVS:
    tclBasic.c 1999/04/16
    
    Comments:
    I'll probably just comment out the define of CONST, but I'm not sure if
        this is a good solution.  So I thought I wouldn't pass on a diff, since
        I'm not sure what's the best solution.
    
    ReproducibleScript:
    compile under QNX 4.24, after generic .configure step
    
    ObservedBehavior:
    Compile crashes with error:
        /port/tcl/tcl8.1/unix/../generic/tclBasic.c(3406): Error! E1013:
        Constant variable cannot be modified
    
    DesiredBehavior:
    I'm unclear why you are declaring objv as a const in tclInt.h, and then
        attempting to modify objv in tclBasic.c (line 3406):
         objv = localObjv;
        As far as I know, you aren't supposed to modify consts!  I do notice
        that you are toying with const a bit, using CONST and defines, but it's
        not clear to me why.
    
    
    
    This is an error on the part of the compiler not understanding
    how to handle const properly.  The assignment is valid, as the
    array is const, but not the pointer to it. 
    -- 12/03/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "Compile fails on improper use of const"
  11. type changed to: "Bug"