c++/6949: [2003-01-22] ICE in tsubst_decl, at cp/pt.c:5733
Christian Ehrhardt
ehrhardt@mathematik.uni-ulm.de
Mon May 12 17:06:00 GMT 2003
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
More information about the Gcc-bugs
mailing list