This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6949: [2003-01-22] ICE in tsubst_decl, at cp/pt.c:5733
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: gcc-prs at gcc dot gnu dot org, rubin at contractor dot net, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Mon, 12 May 2003 18:58:18 +0200
- Subject: 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