This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5494: ((++a)+(++a)) yeilds 4 on x86, but 3 on everything else.
- From: carpman at voidptr dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 25 Jan 2002 19:31:03 -0000
- Subject: c++/5494: ((++a)+(++a)) yeilds 4 on x86, but 3 on everything else.
- Reply-to: carpman at voidptr dot org
>Number: 5494
>Category: c++
>Synopsis: ((++a)+(++a)) yeilds 4 on x86, but 3 on everything else.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 25 11:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Guild of the Void Pointer
>Release: gcc 2.95.2
>Organization:
>Environment:
MAC OS X and Debian Linux.
>Description:
this code..
void main(void){
int a=0;
cout << ((++a)+(++a)) << endl;
}
will produce 4 on x86, but 3 on every other arch I can test.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: