This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12914] New: Pasring Error When Compling "int(int(iMyValue)"
- From: "dekun dot cao at cognos dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2003 17:32:19 -0000
- Subject: [Bug c++/12914] New: Pasring Error When Compling "int(int(iMyValue)"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12914
Summary: Pasring Error When Compling "int(int(iMyValue)"
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dekun dot cao at cognos dot com
CC: gcc-bugs at gcc dot gnu dot org
Error message "error: parse error before `==' token" when compling the
following line of code
int iMyValue = 100;
assert(int(int(iMyValue)) == 50);
However, the following code is OK:
int iMyValue = 100;
assert(int(iMyValue) == 50);
The OS platform we are using is Red Hat Enterprise Linux WS 2.1.
Thanks
Dekun