Skip to content

Commit 6c22333

Browse files
committed
Do not ignore return array size specifications in operator declarations, treat them as errors
1 parent d266203 commit 6c22333

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/compiler/sc1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,6 +3812,8 @@ static void funcstub(int fnative)
38123812
} /* if */
38133813

38143814
if (tok==tOPERATOR) {
3815+
if (numdim!=0)
3816+
error(10); /* invalid function or declaration */
38153817
opertok=operatorname(symbolname);
38163818
if (opertok==0)
38173819
return; /* error message already given */

0 commit comments

Comments
 (0)