Bug 12914 - Pasring Error When Compling "int(int(iMyValue)"
Summary: Pasring Error When Compling "int(int(iMyValue)"
Status: RESOLVED DUPLICATE of bug 11796
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2003-11-05 17:32 UTC by Dekun Cao
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dekun Cao 2003-11-05 17:32:19 UTC
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
Comment 1 Andrew Pinski 2003-11-05 18:16:04 UTC
This is fixed on the mainline (20031104) by the new c++ parser.
Comment 2 Andrew Pinski 2004-04-21 01:26:46 UTC
Reopening to mark as a dup of ...
Comment 3 Andrew Pinski 2004-04-21 01:27:02 UTC
bug 11796.

*** This bug has been marked as a duplicate of 11796 ***