public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41774]  New: ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757
@ 2009-10-21  0:34 regehr at cs dot utah dot edu
  2009-10-21  8:01 ` [Bug c++/41774] " jakub at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: regehr at cs dot utah dot edu @ 2009-10-21  0:34 UTC (permalink / raw)
  To: gcc-bugs

Obviously the input is malformed, but probably still should not ICE.

regehr@john-home:~/volatile/tmp208$ current-g++ -O small.cpp
small.cpp:2:27: internal compiler error: vector VEC(visibility,base) pop domain
error, in pop_visibility at c-pragma.c:757
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

regehr@john-home:~/volatile/tmp208$ current-g++ -v

Using built-in specs.
COLLECT_GCC=current-g++
COLLECT_LTO_WRAPPER=/home/regehr/z/tmp/gcc-r153044-install/libexec/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-lto
--prefix=/home/regehr/z/tmp/gcc-r153044-install --program-prefix=r153044-
--enable-languages=c,c++
Thread model: posix
gcc version 4.5.0 20091020 (experimental) (GCC) 

regehr@john-home:~/volatile/tmp208$ cat small.cpp

namespace std __attribute__ ((__visibility__ ("default"))) {
#pragma GCC visibility pop


-- 
           Summary: ice: vector VEC(visibility,base) pop domain error, in
                    pop_visibility at c-pragma.c:757
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: regehr at cs dot utah dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/41774] ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757
  2009-10-21  0:34 [Bug c++/41774] New: ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757 regehr at cs dot utah dot edu
@ 2009-10-21  8:01 ` jakub at gcc dot gnu dot org
  2009-11-02 13:40 ` jakub at gcc dot gnu dot org
  2009-11-02 13:58 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-10-21  8:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-10-21 08:01 -------
Created an attachment (id=18849)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18849&action=view)
gcc45-pr41775.patch

Fix I'm going to bootstrap/regtest.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/41774] ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757
  2009-10-21  0:34 [Bug c++/41774] New: ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757 regehr at cs dot utah dot edu
  2009-10-21  8:01 ` [Bug c++/41774] " jakub at gcc dot gnu dot org
@ 2009-11-02 13:40 ` jakub at gcc dot gnu dot org
  2009-11-02 13:58 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-11-02 13:40 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/41774] ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757
  2009-10-21  0:34 [Bug c++/41774] New: ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757 regehr at cs dot utah dot edu
  2009-10-21  8:01 ` [Bug c++/41774] " jakub at gcc dot gnu dot org
  2009-11-02 13:40 ` jakub at gcc dot gnu dot org
@ 2009-11-02 13:58 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-11-02 13:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-11-02 13:58 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-02 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-21  0:34 [Bug c++/41774] New: ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757 regehr at cs dot utah dot edu
2009-10-21  8:01 ` [Bug c++/41774] " jakub at gcc dot gnu dot org
2009-11-02 13:40 ` jakub at gcc dot gnu dot org
2009-11-02 13:58 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).