summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-28 22:49:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-28 22:49:22 (GMT)
commitd2629fb2726fa18af638288c9c9aa89369b9fade (patch)
tree5a668f6c4e6abf7a07037bf9a931592971a77f11 /generic/tclCompile.c
parent2880e7da55a9d5ff7d8ba8fed48743f0e15733a4 (diff)
parentedc450c53752cf92b00a45883fee2d66a2bde27c (diff)
downloadtcl-d2629fb2726fa18af638288c9c9aa89369b9fade.zip
tcl-d2629fb2726fa18af638288c9c9aa89369b9fade.tar.gz
tcl-d2629fb2726fa18af638288c9c9aa89369b9fade.tar.bz2
merge 8.6
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index c0b5dcc..c0203dd 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -3239,8 +3239,10 @@ EnterCmdWordData(
TclAdvanceLines(&wordLine, last, tokenPtr->start);
TclAdvanceContinuations(&wordLine, &wordNext,
tokenPtr->start - envPtr->source);
+ /* See Ticket 4b61afd660 */
wwlines[wordIdx] =
- (TclWordKnownAtCompileTime(tokenPtr, NULL) ? wordLine : -1);
+ ((wordIdx == 0) || TclWordKnownAtCompileTime(tokenPtr, NULL))
+ ? wordLine : -1;
ePtr->line[wordIdx] = wordLine;
ePtr->next[wordIdx] = wordNext;
last = tokenPtr->start;