-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix return array size specifications being ignored in operator declarations #686
base: dev
Are you sure you want to change the base?
Conversation
This issue has been automatically marked as stale because it has not had recent activity. |
@Daniel-Cortez Just to tell you (don't know a better way to contact you), I'm going to go through the backlog this week and try release 3.10.11 on 08/02, since it is exactly 2 years since 3.10.10. Seems appropriate. |
Did you mean 3.11? 3.10.11 just seems kind of wrong to me... |
@DEntis-T: No
Which is: case iREFARRAY:
/* a global iREFARRAY symbol is the return value of a function: delete
* this only if "globals" must be deleted; other iREFARRAY instances
* (locals) are also deleted
*/
mustdelete=(sym->vclass==sGLOBAL) ? delete_functions : TRUE;
for (parent_sym=sym->parent; parent_sym!=NULL && parent_sym->ident!=iFUNCTN; parent_sym=parent_sym->parent)
assert(parent_sym->ident==iREFARRAY);
assert(parent_sym==NULL || (parent_sym->ident==iFUNCTN && parent_sym->parent==NULL));
if (sym->vclass==sGLOBAL) {
assert(parent_sym!=NULL && parent_sym->ident==iFUNCTN);
if ((parent_sym->usage & uNATIVE)!=0) {
/* native functions aren't preserved (see the comment under the
* 'iFUNCTN' case below), so the array must be deleted as well */
mustdelete=TRUE;
} /* if */
} /* if */
break; assert(parent_sym->ident==iREFARRAY); |
@Y-Less |
What this PR does / why we need it:
Fixes return array size specifications being silently ignored in new-style operator declarations (see #685) and makes the compiler treat such specifications as errors.
Which issue(s) this PR fixes:
Fixes #685
What kind of pull this is:
Additional Documentation: