[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/16706] [3.4/3.5 Regression] ICE in finish_member_declaration, at cp/semantics.c:2126



------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-02 20:38 -------
> Volker's reduced code
> : Search converges between 2003-01-15-trunk (#165) and 2003-01-17-trunk
(#166).
> 
> Wolfgang's reduced code
> : Search converges between 2003-10-17-trunk (#379) and 2003-10-18-trunk
(#380).
> 
> So they look like two different bugs.

I still think this is the same underlying bug:
a) I reduced Wolfgang's version to come up with mine.
b) My example starts with an ICE in
     cxx_incomplete_type_diagnostic, at cp/typeck2.c:278
   which changed to
     instantiate_class_template, at cp/pt.c:5440
   the day Wolfgang's testcase started crashing the compiler.

Btw, I've got another reduced example - this time the crash is in the same
spot as with the original example. For this one I also get
: Search converges between 2003-01-15-trunk (#165) and 2003-01-17-trunk (#166).

===============================================================================
template<typename> struct A
{
    struct X;
    struct Y;
};

template<typename T> struct B
{
    T t;
    B();
};

template<typename T> struct C
{
    B<A<T> > b;
    template<typename> struct D;
};

template<typename T> template<typename U> struct C<T>::D<U*>
{
    B<A<T> > b;
    D() {}
};

template struct C<int>::D<int*>;
===============================================================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: