[C++ PATCH] parser simplification
commitfe9d6ae93ee3c59179b39146767640f396f30955
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Oct 2018 18:58:55 +0000 (11 18:58 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Oct 2018 18:58:55 +0000 (11 18:58 +0000)
tree8b9de7ab9434ac9fc55a38ffa02b3b4d41424bea
parent2b60b596ee9918d86f049b614e5d20c43421e26f
[C++ PATCH] parser simplification

https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00689.html
cp/
* parser.c (cp_parser_translation_unit): Return void.  Don't fail
at first extra }, simplify logic.
(c_parse_file): Call finish_translation_unit here.

testsuite/
* g++.dg/parse/close-brace.C: New.
* g++.dg/cpp0x/noexcept16.C: Avoid warning.
* g++.old-deja/g++.other/crash32.C: Add another error

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265055 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept16.C
gcc/testsuite/g++.dg/parse/close-brace.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/crash32.C