[PATCH] Fix PR 81721: ICE with PCH and Pragma warning and C++ operator
authorAndrew Pinski <apinski@marvell.com>
Mon, 20 May 2019 06:59:06 +0000 (06:59 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 20 May 2019 06:59:06 +0000 (23:59 -0700)
commit3f23e487f38e56a3daa66ad22dc2216fa17db885
tree397fd7d94db61830bbfe735e6f8b5f0846098e48
parent55fd9fcd83baa4034d6a5e4a0ad6527c69b94668
[PATCH] Fix PR 81721: ICE with PCH and Pragma warning and C++ operator

libcpp/ChangeLog:
2019-05-19  Andrew Pinski  <apinski@marvell.com>

        PR pch/81721
        * lex.c (cpp_token_val_index <case SPELL_OPERATOR>): If tok->flags
        has NAMED_OP set, then return CPP_TOKEN_FLD_NODE.

gcc/testsuite/ChangeLog:
2019-05-19  Andrew Pinski  <apinski@marvell.com>

        PR pch/81721
        * g++.dg/pch/operator-1.C: New testcase.
        * g++.dg/pch/operator-1.Hs: New file.

From-SVN: r271395
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pch/operator-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pch/operator-1.Hs [new file with mode: 0644]
libcpp/ChangeLog
libcpp/lex.c