This is the mail archive of the gcc-bugs@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]

[Bug c++/60385] confused by earlier errors, bailing out


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60385

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri May 27 19:19:23 2016
New Revision: 236835

URL: https://gcc.gnu.org/viewcvs?rev=236835&root=gcc&view=rev
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/parse/namespace13.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/name-lookup.h
    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]