[fpc-pascal] Weird absence of compilation error

OBones obones at free.fr
Thu Mar 21 16:49:11 CET 2013


Tomas Hajny wrote:
>> What I was expecting is that the compilation fails in all cases.
>> Is there some flag that I failed to specify?
> You can add {$X-} to the top (i.e. disable the so-called extended syntax
> allowing to treat functions like procedures) and then it fails. However, I
> think that it should fail on the plus sign in any case and I would suggest
> filing a bug report.
Ah, I see what $X- does, and yes indeed I get the compiler error.
But alas, I can't use it directly because dropping the function result 
is something that is done in a lot of other places.
Ah well, I'll have to warn my users to be more careful.
Anyway, I have created a ticket for this, thanks for the response: 
http://bugs.freepascal.org/view.php?id=24104

Regards
OBones



More information about the fpc-pascal mailing list