r129003 - in /trunk/gcc: cp/ChangeLog cp/name-l...

jason@gcc.gnu.org jason@gcc.gnu.org
Thu Oct 4 08:48:00 GMT 2007


Author: jason
Date: Thu Oct  4 08:48:23 2007
New Revision: 129003

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129003
Log:
        PR c++/32470
        * name-lookup.c (push_namespace_with_attrs): Fold back into...
        (push_namespace): Here.
        (handle_namespace_attrs): New fn for the attr code.
        (leave_scope): Don't pop_visibility.
        * name-lookup.h (struct cp_binding_level): Remove has_visibility.
        * parser.c (cp_parser_namespace_definition): Call
        handle_namespace_attrs and pop_visibility as appropriate.

Added:
    trunk/gcc/testsuite/g++.dg/ext/visibility/namespace2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/name-lookup.h
    trunk/gcc/cp/parser.c



More information about the Gcc-cvs mailing list