]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/81247
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jun 2017 18:20:13 +0000 (18:20 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jun 2017 18:20:13 +0000 (18:20 +0000)
commit4fbdcec5d521fe154bc6e1738b40f649ba216c2d
tree826f90271e7bf7bbe7d17c9e5d7c85d88c8576ae
parent398789778452f53b4e8fc43d7cb651148578109a
PR c++/81247
* parser.c (cp_parser_namespace_definition): Immediately close the
namespace if there's no open-brace.
* name-lookup.c (do_pushdecl): Reset OLD when pushing into new
namespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249804 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/pr81247-a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/pr81247-b.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/pr81247-c.C [new file with mode: 0644]