public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "janis at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/37561] [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C
Date: Fri, 19 Sep 2008 18:26:00 -0000	[thread overview]
Message-ID: <20080919182439.9908.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37561-682@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2008-09-19 18:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17 14:50 [Bug testsuite/37561] New: " hjl dot tools at gmail dot com
2008-09-17 16:02 ` [Bug testsuite/37561] " janis at gcc dot gnu dot org
2008-09-17 16:12 ` hjl dot tools at gmail dot com
2008-09-17 17:03 ` janis at gcc dot gnu dot org
2008-09-17 17:39 ` janis at gcc dot gnu dot org
2008-09-19 18:26 ` janis at gcc dot gnu dot org [this message]
2008-09-20  3:10 ` [Bug c++/37561] " pinskia at gcc dot gnu dot org
2008-10-07 14:10 ` [Bug c++/37561] [4.2/4.3/4.4 " jakub at gcc dot gnu dot org
2008-10-22  3:21 ` mmitchel at gcc dot gnu dot org
2008-11-14 16:12 ` jakub at gcc dot gnu dot org
2008-11-15  9:55 ` jakub at gcc dot gnu dot org
2008-11-15  9:58 ` [Bug c++/37561] [4.2/4.3 " jakub at gcc dot gnu dot org
2009-01-08 22:58 ` rguenth at gcc dot gnu dot org
2009-07-10 15:55 ` rguenth at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080919182439.9908.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).