This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19723] New: [4.0 Regression] A side effect is missed in 0 % a++.
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2005 13:41:38 -0000
- Subject: [Bug tree-optimization/19723] New: [4.0 Regression] A side effect is missed in 0 % a++.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider:
int
foo (int a)
{
int x = 0 % a++;
return a;
}
Here is what I get:
foo (a)
{
<bb 0>:
return a;
}
--
Summary: [4.0 Regression] A side effect is missed in 0 % a++.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19723