https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61977
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Apr 6 17:01:50 2015 New Revision: 221882 URL: https://gcc.gnu.org/viewcvs?rev=221882&root=gcc&view=rev Log: PR preprocessor/61977 * lex.c (cpp_peek_token): If peektok is CPP_EOF, back it up with all tokens peeked by the current function. * gcc.dg/cpp/pr61977.c: New test. Added: trunk/gcc/testsuite/gcc.dg/cpp/pr61977.c Modified: trunk/gcc/testsuite/ChangeLog trunk/libcpp/ChangeLog trunk/libcpp/lex.c