[nem-bug] [Nemerle 0000956]: preprocessor conditions are not
strictly checked
feedback at nemerle.org
feedback at nemerle.org
Thu Mar 1 20:46:32 CET 2007
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=956>
======================================================================
Reported By: divan
Assigned To: divan
======================================================================
Project: Nemerle
Issue ID: 956
Category: Compiler (parser/macros engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 02-25-2007 02:15 CET
Last Modified: 03-01-2007 20:46 CET
======================================================================
Summary: preprocessor conditions are not strictly checked
Description:
#if true==true!=true
1
#endif
It compiles, but I think it is illegal expression
======================================================================
----------------------------------------------------------------------
nikov - 02-25-07 17:23
----------------------------------------------------------------------
Hmm... why illegal?
It should be parsed as ((true==true) != true), that is true != true, that
is false.
----------------------------------------------------------------------
divan - 02-25-07 17:49
----------------------------------------------------------------------
#if true==true!=true
System.Console.WriteLine("It is true");
#endif
#if (true==true!=true)
System.Console.WriteLine("It is true");
#endif
Gives error: "unbalanced parenthesis"
----------------------------------------------------------------------
divan - 03-01-07 20:46
----------------------------------------------------------------------
Fixed on trunk (r7503)
Issue History
Date Modified Username Field Change
======================================================================
02-25-07 02:15 divan New Issue
02-25-07 17:23 nikov Note Added: 0001788
02-25-07 17:49 divan Note Added: 0001789
03-01-07 20:46 divan Note Added: 0001801
03-01-07 20:46 divan Assigned To => divan
03-01-07 20:46 divan Status new => resolved
03-01-07 20:46 divan Resolution open => fixed
03-01-07 20:46 divan Description Updated
======================================================================
More information about the bugs
mailing list