This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/47238] New: Incorrect evaluation '=' in GNATPREP
- From: "ivansavvateev at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 9 Jan 2011 19:50:17 +0000
- Subject: [Bug ada/47238] New: Incorrect evaluation '=' in GNATPREP
- Auto-submitted: auto-generated
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.