r249804 - in /trunk/gcc: cp/ChangeLog cp/name-l...

nathan@gcc.gnu.org nathan@gcc.gnu.org
Thu Jun 29 18:20:00 GMT 2017


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



More information about the Gcc-cvs mailing list