[Bug c/6906] warn about asserts with side effects
chris dot pickett at mail dot mcgill dot ca
gcc-bugzilla@gcc.gnu.org
Mon Mar 3 02:56:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list