This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/37561] [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2008 18:24:39 -0000
- Subject: [Bug testsuite/37561] [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C
- References: <bug-37561-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from janis at gcc dot gnu dot org 2008-09-19 18:24 -------
The operand of a postincrement and friends must be a modifiable lvalue. The
type check code for both C and C++ calls get_unwidened, which removes the cast
when it's a different size but leaves the cast when it's the same size. The
later call to lvalue_p (via lvalue_or_else) says the operand is not an lvalue
when there's still a cast, but doesn't complain when the cast has been removed.
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org, jsm28 at gcc dot gnu
| |dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37561