Menu

#89 Wrong evaluation of #if expression

v6.0.1
open
nobody
None
1
2016-10-24
2016-10-24
No

$ coan --version
coan, version 6.0.1 for 64 bit Unix/Linux(built Sep 15 2014,18:49:36)

Some #if expressions are evaluated with wrong result -- see example below

Test case

$ cat bug1.c

if !(defined A || defined B || defined C)

#error you SHOULD NOT see this if C is defined!

endif

$ coan source -DC bug1.c
coan: /data/tmp/36/bug1.c: line 2: warning 0x00409: An operative #error directive was output
#error you SHOULD NOT see this if C is defined!

Expected output
output shoud be empty if run with "-DC" argument

$ coan source -DA bug1

Tested on linux 64bit, windows7 64bit

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB