diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-06-29 18:20:13 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-06-29 18:20:13 +0000 |
commit | be3b7dcf5c0f48ce72fe7a6f30db350e5c6872f3 (patch) | |
tree | 826f90271e7bf7bbe7d17c9e5d7c85d88c8576ae /gcc/ccmp.h | |
parent | 6044f5e327761e0030f3b792fe5e5f38ff9032e2 (diff) | |
download | gcc-be3b7dcf5c0f48ce72fe7a6f30db350e5c6872f3.zip gcc-be3b7dcf5c0f48ce72fe7a6f30db350e5c6872f3.tar.gz gcc-be3b7dcf5c0f48ce72fe7a6f30db350e5c6872f3.tar.bz2 |
re PR c++/81247 (ICE on invalid C++ code with malformed namespace declaration: in do_push_nested_namespace, at cp/name-lookup.c:6002)
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.
From-SVN: r249804
Diffstat (limited to 'gcc/ccmp.h')
0 files changed, 0 insertions, 0 deletions