This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12914] New: Pasring Error When Compling "int(int(iMyValue)"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]