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++/11886] [3.4 Regression] ice in pop_binding, at cp/decl.c:1139


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at codesourcery dot
                   |                            |com


------- Additional Comments From bangerth at dealii dot org  2003-08-12 14:09 -------
Here's something smaller: 
------------------------------------- 
template <typename T> struct H { 
    typedef struct {} local; 
    void g (); 
}; 
 
template <typename> struct Y {}; 
 
template <typename T> 
struct H_2 : public H<Y<T> > { 
    typedef typename H<Y<T> >::local local; 
}; 
 
struct X { 
    void f () const 
        { H_2<int>().g(); } 
}; 
---------------------------------------------------- 
 
mp/g> ../build-gcc/gcc-install/bin/c++ -c x.cc 
x.cc: In member function `void X::f() const': 
x.cc:3:   instantiated from `void H<T>::g() [with T = Y<int>]' 
x.cc:15:   instantiated from here 
x.cc:3: internal compiler error: in pop_binding, at cp/decl.c:1139 
Please submit a full bug report, 
 
If one changes the "typedef struct {} local;" to "struct local {};", the ICE goes away. This 
looks very much like PR 11791 then, but that one seems to be fixed. Nathan, you 
broke and fixed 11791, so I CC: you on this one, too. 
 
W.


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