re PR c++/60385 (confused by earlier errors, bailing out)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 27 May 2016 19:19:23 +0000 (19:19 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 27 May 2016 19:19:23 +0000 (19:19 +0000)
commit8008c4d2bec3e5f54c149e08b62380f62641a965
tree7477cadbff321ea450085460b0be3337e0e5b309
parent9a01befbca8a8d3ad2576e9774ba2f93efd71663
re PR c++/60385 (confused by earlier errors, bailing out)

/cp
2016-05-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60385
* name-lookup.c (push_namespace): Return bool, false when pushdecl
fails.
* name-lookup.h (push_namespace): Adjust declaration.
* parser.c (cp_parser_namespace_definition): Check push_namespace
return value.

/testsuite
2016-05-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60385
* g++.dg/parse/namespace13.C: New.

From-SVN: r236835
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/namespace13.C [new file with mode: 0644]