mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
array=0; should be an error.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4912 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3079756b7e
commit
2f4f8d2878
1 changed files with 10 additions and 0 deletions
|
@ -7466,6 +7466,16 @@ QCC_sref_t QCC_StoreToRef(QCC_ref_t *dest, QCC_sref_t source, pbool readable, pb
|
|||
{
|
||||
switch(dest->type)
|
||||
{
|
||||
case REF_ARRAYHEAD:
|
||||
QCC_PR_ParseWarning(ERR_PARSEERRORS, "left operand must be an l-value (add you mean %s[0]?)", QCC_GetSRefName(dest->base));
|
||||
if (!preservedest)
|
||||
QCC_PR_DiscardRef(dest);
|
||||
break;
|
||||
default:
|
||||
QCC_PR_ParseWarning(ERR_PARSEERRORS, "left operand must be an l-value (unsupported reference type)", QCC_GetSRefName(dest->base));
|
||||
if (!preservedest)
|
||||
QCC_PR_DiscardRef(dest);
|
||||
break;
|
||||
case REF_GLOBAL:
|
||||
case REF_ARRAY:
|
||||
if (!dest->index.cast || dest->index.sym->constant)
|
||||
|
|
Loading…
Reference in a new issue