This is the mail archive of the
mailing list for the GCC project.
Re: PATCH RFA: C++ frontend: Don't warn about shifts which will not be run
- From: Jason Merrill <jason at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Fri, 12 Jun 2009 16:27:24 -0400
- Subject: Re: PATCH RFA: C++ frontend: Don't warn about shifts which will not be run
- References: <email@example.com>
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.