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++/41774] ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757



------- Comment #2 from jakub at gcc dot gnu dot org  2009-11-02 13:40 -------
Subject: Bug 41774

Author: jakub
Date: Mon Nov  2 13:39:46 2009
New Revision: 153805

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153805
Log:
        PR c++/41774
        * c-pragma.c (visstack): Change into vector of ints rather than
        enum symbol_visibility.
        (push_visibility): Add kind argument, push default_visibility together
        with kind.
        (pop_visibility): Add kind argument, return true if successful, fail
        if visibility stack is empty or if stack top is of different kind.
        (handle_pragma_visibility): Don't check length of visstack, instead
        call pop_visibility and issue diagnostics if it failed.  Pass 0
        as last argument to push_visibility and pop_visibility.
        * c-pragma.h (push_visibility): Add kind argument.
        (pop_visibility): Likewise.  Return bool instead of void.

        * name-lookup.c (handle_namespace_attrs): Pass 1 as last argument to
        push_visibility.
        * parser.c (cp_parser_namespace_definition): Pass 1 as argument to
        pop_visibility.
        * rtti.c (push_abi_namespace): Pass 2 as last argument to
        push_visibility.
        (pop_abi_namespace): Pass 2 as argument to pop_visibility.

        * g++.dg/ext/visibility/namespace3.C: New test.

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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41774


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]