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

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 29 12:40:00 GMT 2008



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



More information about the Gcc-bugs mailing list