public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "chris dot pickett at mail dot mcgill dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/6906] warn about asserts with side effects
Date: Mon, 03 Mar 2008 02:56:00 -0000	[thread overview]
Message-ID: <20080303025554.29962.qmail@sourceware.org> (raw)
In-Reply-To: <bug-6906-1490@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from chris dot pickett at mail dot mcgill dot ca  2008-03-03 02:55 -------
Maybe you could fix the preprocessor to warn about operators with known side
effects.  Can cpp see the entire expr in assert (expr)?  If so, just search the
tokens for =, ++, --, +=, -=, etc.


-- 

chris dot pickett at mail dot mcgill dot ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chris dot pickett at mail
                   |                            |dot mcgill dot ca


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6906


  parent reply	other threads:[~2008-03-03  2:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-6906-1490@http.gcc.gnu.org/bugzilla/>
2006-10-15 19:45 ` pinskia at gcc dot gnu dot org
2008-03-03  2:56 ` chris dot pickett at mail dot mcgill dot ca [this message]
     [not found] <bug-6906-4@http.gcc.gnu.org/bugzilla/>
2020-04-16 17:43 ` felix.von.s at posteo dot de
     [not found] <20020601163600.6906.123468@bugs.debian.org>
2003-12-31 17:20 ` pinskia at gcc dot gnu dot org
2004-08-10 23:56 ` mbp at sourcefrog dot net

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=20080303025554.29962.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).