[Bug middle-end/49705] -Wstrict-overflow should not diagnose unevaluated expressions
ian at airs dot com
gcc-bugzilla@gcc.gnu.org
Tue Jul 12 14:25:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49705
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ian at airs dot com
--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2011-07-12 14:25:13 UTC ---
Very difficult to fix in the general case but easy to fix in this particular
case. When the warning is issued, c_inhibit_evaluation_warnings is 1. All we
need to do is, when setting c_inhibit_evaluation_warnings non-zero, also call
fold_defer_overflow_warnings.
More information about the Gcc-bugs
mailing list