This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9062: gcc 3.2.0, 3.2.1 optimization bug with postincrement
- From: reichelt at igpm dot rwth-aachen dot de
- To: andrej dot filipcic at ijs dot si, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 30 Dec 2002 21:29:45 -0000
- Subject: Re: c++/9062: gcc 3.2.0, 3.2.1 optimization bug with postincrement
- Reply-to: reichelt at igpm dot rwth-aachen dot de, andrej dot filipcic at ijs dot si, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.2.0, 3.2.1 optimization bug with postincrement
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Mon Dec 30 13:29:45 2002
State-Changed-Why:
Not a bug.
You're invoking undefined behaviour (the compiler may
evaluate the left hand side and right hand side of
*p++=tolower(*p);
in any order - which changes with optimization.)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9062