[Bug ada/47238] New: Incorrect evaluation '=' in GNATPREP
ivansavvateev at yandex dot ru
gcc-bugzilla@gcc.gnu.org
Sun Jan 9 21:03:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47238
Summary: Incorrect evaluation '=' in GNATPREP
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ivansavvateev@yandex.ru
GNATPREP evaluates incorrectly an expression contains two integer symbols. For
example, when I define:
SYS_MODE_PCP := 1
SYS_MODE := SYS_MODE_PCP
and try to preprocess:
#IF SYS_MODE = SYS_MODE_PCP
TCB : P_TCB;
#END IF;
I get after preprocessing:
--! #IF SYS_MODE = SYS_MODE_PCP
--! TCB : P_TCB;
--! #END IF;
although the condition is true.
More information about the Gcc-bugs
mailing list