re PR c++/79369 (namespace definition with qualified id)
authorNathan Sidwell <nathan@gcc.gnu.org>
Mon, 15 May 2017 19:35:52 +0000 (19:35 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 15 May 2017 19:35:52 +0000 (19:35 +0000)
commit3a77e7ccc4cc096613394ab0ebb520ac71325405
treefa2958bbb482d2c4052540d22b615137a1f8c25c
parent0735a1c8cf2fe23ade2f98e5dbaf1781f597471d
re PR c++/79369 (namespace definition with qualified id)

gcc/cp/
PR c++/79369
* cp-tree.h (DECL_NAMESPACE_INLINE_P): New.
* name-lookup.h (push_namespace): Return int, add make_inline arg.
* name-lookup.c (push_namespace): Deal with inline directly.
Return pushed count.
* parser.c (cp_parser_namespace_definition): Adjust for
push_namespace change.

gcc/testsuite/
* g++.dg/cpp0x/pr65558.C: Adjust diagnostic location.
* g++.dg/cpp0x/pr79369.C: New.

From-SVN: r248073
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr65558.C
gcc/testsuite/g++.dg/cpp0x/pr79369.C [new file with mode: 0644]