]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PATCH] Fix PR 81721: ICE with PCH and Pragma warning and C++ operator
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 May 2019 06:59:06 +0000 (06:59 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 May 2019 06:59:06 +0000 (06:59 +0000)
commitdb9c2a1461eed5197e34f253d90e788ffacb52ac
tree397fd7d94db61830bbfe735e6f8b5f0846098e48
parent76bfe522ab1e16a8cb578315521f6c659ffe3538
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271395 138bc75d-0d04-0410-961f-82ee72b054a4
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