Overview
| Artifact ID: | 180597e567af17af4a37a4d43c949bdd83d004cc |
|---|---|
| Ticket: | 218129ffffffffffffffffffffffffffffffffff
Compile fails on improper use of const |
| User & Date: | nobody on 2000-10-26 00:53:28 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "75. Tutorial"
- title changed to: "Compile fails on improper use of const"
- type changed to: "Bug"