.
D 2000-10-26T00:53:28
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1994\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-05'\nLastModified:\s'1999-12-03'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\shobbs\nOS:\sOther\nOSVersion:\sQNX\s4.24\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-12-03'\n\n\nName:\nDavid\sCorlette\n\nCVS:\ntclBasic.c\s1999/04/16\n\nComments:\nI'll\sprobably\sjust\scomment\sout\sthe\sdefine\sof\sCONST,\sbut\sI'm\snot\ssure\sif\n\s\s\s\sthis\sis\sa\sgood\ssolution.\s\sSo\sI\sthought\sI\swouldn't\spass\son\sa\sdiff,\ssince\n\s\s\s\sI'm\snot\ssure\swhat's\sthe\sbest\ssolution.\n\nReproducibleScript:\ncompile\sunder\sQNX\s4.24,\safter\sgeneric\s.configure\sstep\n\nObservedBehavior:\nCompile\scrashes\swith\serror:\n\s\s\s\s/port/tcl/tcl8.1/unix/../generic/tclBasic.c(3406):\sError!\sE1013:\n\s\s\s\sConstant\svariable\scannot\sbe\smodified\n\nDesiredBehavior:\nI'm\sunclear\swhy\syou\sare\sdeclaring\sobjv\sas\sa\sconst\sin\stclInt.h,\sand\sthen\n\s\s\s\sattempting\sto\smodify\sobjv\sin\stclBasic.c\s(line\s3406):\n\s\s\s\s\sobjv\s=\slocalObjv;\n\s\s\s\sAs\sfar\sas\sI\sknow,\syou\saren't\ssupposed\sto\smodify\sconsts!\s\sI\sdo\snotice\n\s\s\s\sthat\syou\sare\stoying\swith\sconst\sa\sbit,\susing\sCONST\sand\sdefines,\sbut\sit's\n\s\s\s\snot\sclear\sto\sme\swhy.\n\n\n\nThis\sis\san\serror\son\sthe\spart\sof\sthe\scompiler\snot\sunderstanding\nhow\sto\shandle\sconst\sproperly.\s\sThe\sassignment\sis\svalid,\sas\sthe\narray\sis\sconst,\sbut\snot\sthe\spointer\sto\sit.\s\n--\s12/03/1999\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 75.\sTutorial
J title Compile\sfails\son\simproper\suse\sof\sconst
J type Bug
K 218129ffffffffffffffffffffffffffffffffff
U nobody
Z 5c868aff09b7f33be51392ba907cee91