Bug#123468: [Bug c/6906] warn about asserts with side effects
------- 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
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
Reply to: