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]

Re: c++/6949: [2003-01-22] ICE in tsubst_decl, at cp/pt.c:5733


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6949

A further cleaned up testcase is below. The problem is that tsubst_decl
expects non NULL DECL_TEMPLATE_INFO on the prototype declaration of the
member function g in this assertion around line 6000 in cp/pt.c:

|  /* Nobody should be tsubst'ing into non-template functions.  */
|  my_friendly_assert (DECL_TEMPLATE_INFO (t) != NULL_TREE, 0);

template<class T>
void f(const T&)
{
        struct B {
		
                void g (T);
        };
        B b;
};
void g()
{
        f(42);
}

   regards  Christian


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