public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58231] New: Using post-decrement as a boolean expression in if statement leads to crash
@ 2013-08-23 10:44 soulofdeity at gmail dot com
  2013-08-23 10:57 ` [Bug c/58231] " mpolacek at gcc dot gnu.org
  2013-08-30 10:24 ` mpolacek at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: soulofdeity at gmail dot com @ 2013-08-23 10:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58231
           Summary: Using post-decrement as a boolean expression in if
                    statement leads to crash
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: soulofdeity at gmail dot com

This works:

  if (!i)
    ;//code
  i--;


This crashes:

  if (!i--)
    ;//code


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/58231] Using post-decrement as a boolean expression in if statement leads to crash
  2013-08-23 10:44 [Bug c/58231] New: Using post-decrement as a boolean expression in if statement leads to crash soulofdeity at gmail dot com
@ 2013-08-23 10:57 ` mpolacek at gcc dot gnu.org
  2013-08-30 10:24 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-23 10:57 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-08-23
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Please provide whole testcase, GCC options, version, etc.  I can't see this
crashing in a simple code.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/58231] Using post-decrement as a boolean expression in if statement leads to crash
  2013-08-23 10:44 [Bug c/58231] New: Using post-decrement as a boolean expression in if statement leads to crash soulofdeity at gmail dot com
  2013-08-23 10:57 ` [Bug c/58231] " mpolacek at gcc dot gnu.org
@ 2013-08-30 10:24 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-08-30 10:24 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Feedback not coming.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-30 10:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-23 10:44 [Bug c/58231] New: Using post-decrement as a boolean expression in if statement leads to crash soulofdeity at gmail dot com
2013-08-23 10:57 ` [Bug c/58231] " mpolacek at gcc dot gnu.org
2013-08-30 10:24 ` mpolacek at gcc dot gnu.org

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