This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249804 - in /trunk/gcc: cp/ChangeLog cp/name-l...
- From: nathan at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 29 Jun 2017 18:20:14 -0000
- Subject: r249804 - in /trunk/gcc: cp/ChangeLog cp/name-l...
Author: nathan
Date: Thu Jun 29 18:20:13 2017
New Revision: 249804
URL: https://gcc.gnu.org/viewcvs?rev=249804&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/parse/pr81247-a.C
trunk/gcc/testsuite/g++.dg/parse/pr81247-b.C
trunk/gcc/testsuite/g++.dg/parse/pr81247-c.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog