This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]