Artifacts Associated With Ticket 1a25fdfec6
Ticket change [15a3530d9a] (rid 145475) by dgp on 2016-03-11 14:25:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In tclCompCmdsGR.c the routine IndexTailVarIfKnown() misuses TclWordKnownAtCompileTime(). The overall routine is examining the word parsed in varTokenPtr, and wants to report whether the tail portion of that word can be determined so the local varname can be known, and bytecode can be generated for commands like [global] and [variable]. In particular it appears to want to support bytecoding of things like variable [find-namesapce]::foo where the whole value of the argument is not known until runtime, but we know the tail portion now, so we know the local name argument to INST_NSUPVAR. The problem is the routine TclWordKnownAtCompileTime() is called to ask whether the final portion of the argument word (the 'last token') is known. This use misses the fact that TWKACT is explicitly the routine Tcl***WORD***KnownAtCompileTime() and will only return true for an entire word, not for tail portions of a word. This call always returns false as written. All the code written to handle a true return is unused and worthless. The idea here seems worthwhile, so the fix may be to just put the needed testing here directly, replacing the misused TWKACT call. - foundin initialized to: "all"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "IndexTailVarIfKnown makes pointless call"
- type initialized to: "Bug"
Ticket change [6736a4a435] (rid 145476) by dgp on 2016-03-11 14:30:28:
- assignee changed to: "msofer"
- icomment:
This error appears to have been in the original code. http://core.tcl.tk/tcl/info/8fe01ff44102e6ba
- login: "dgp"
- mimetype: "text/plain"
Ticket change [14552c23f4] (rid 145486) by dgp on 2016-03-11 15:42:31:
- icomment:
Candidate for merge to 8.6, etc.: http://core.tcl.tk/tcl/info/2334f398b81654e9
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [4452a764d2] (rid 145698) by dgp on 2016-03-17 12:24:38:
- assignee changed to: "dgp"
- closedate changed to: "2457465.01711292"
- closer changed to: "dgp"
- icomment:
Fixed for 8.6.6+.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"