[PATCH] Fix PR 81721: ICE with PCH and Pragma warning and C++ operator

Joseph Myers joseph@codesourcery.com
Thu May 16 22:31:00 GMT 2019


On Mon, 1 Apr 2019, apinski@marvell.com wrote:

> From: Andrew Pinski <apinski@marvell.com>
> 
> Hi,
>   The problem here is the token->val.node is not saved over
> a precompiled header for C++ operator.  This can cause an
> internal compiler error as we tried to print out the spelling
> of the token as we assumed it was valid.
> The fix is to have cpp_token_val_index return CPP_TOKEN_FLD_NODE
> for operator tokens that have NAMED_OP set.
> 
> OK?  Bootstrapped and tested on x86_64-linux-gnu with no regressions.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list