As far as I can tell, that is in line with MPASM (although that gives a message about the substitution but compiles the same otherwise). There are a few 12-bit processors for which gpasm throws an error on RETURN but even for those, MPASM compiles it as RETLW 0 with a warning.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As far as I can tell, that is in line with MPASM (although that gives a message about the substitution but compiles the same otherwise). There are a few 12-bit processors for which gpasm throws an error on RETURN but even for those, MPASM compiles it as RETLW 0 with a warning.
This bug is fixed in [r1330] svn version.
Related
Commit: [r1330]