PATCH RFA: C++ frontend: Don't warn about shifts which will not be run
Jason Merrill
jason@redhat.com
Fri Jun 12 20:30:00 GMT 2009
On 06/12/2009 02:32 PM, Ian Lance Taylor wrote:
> This patch modifies the C++ frontend to not warn about bad shift counts
> for shifts which will never be executed. It uses the existing
> skip_evaluation global variable. It sets the variable when parsing ?:
> when the condition is known to be true or false. It only warns about
> bad shift counts when skip_evaluation is zero.
Hmm... The use of skip_evaluation in finish_non_static_data_member
would be incorrect if we start setting it in cases like this. I think
this needs a separate flag.
Jason
More information about the Gcc-patches
mailing list