This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: C++ frontend: Don't warn about shifts which will not be run


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]