diff --git a/source/compiler/sc3.c b/source/compiler/sc3.c index c632b40..c61a04c 100644 --- a/source/compiler/sc3.c +++ b/source/compiler/sc3.c @@ -2215,7 +2215,7 @@ static int nesting=0; if (arg[argidx].numdim!=1) { error(48); /* array dimensions must match */ } else { - if (lval.sym==NULL && (arg[argidx].usage & uCONST)==0) + if (lval.sym==NULL && (arg[argidx].usage & uCONST)==0 && (sym->usage & uNATIVE)==0) error(239); if (arg[argidx].dim[0]!=0) { assert(arg[argidx].dim[0]>0);