gcc-bugs@gcc.gnu.org
[Top] [All Lists]

[Bug c/37947] missing sequence point warning for 'count += inc(&count);'

Subject: [Bug c/37947] missing sequence point warning for 'count += inc(&count);'
From: "manu at gcc dot gnu dot org"
Date: 29 Oct 2008 12:40:46 -0000

------- Comment #5 from manu at gcc dot gnu dot org  2008-10-29 12:40 -------
(In reply to comment #3)
> Thanks for the quick answer. Is it possible to get a warning if I write
> undefined code like this? -Wall didn't tell me anything.

-Wsequence-point should but it doesn't right now. The sooner this could be
implemented would be GCC 4.5. Sorry about that.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-29 12:40:46
               date|                            |


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

<Prev in Thread] Current Thread [Next in Thread>