[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using inherited class pointer as template class argument with static cl
From: |
Tamas Varga |
Subject: |
Using inherited class pointer as template class argument with static class meber |
Date: |
Tue, 05 Jun 2001 13:13:09 +0200 |
Hi GCC maintainers,
the code fragement below produces an 'internal complier error', which
seems to be unreasonable. The static member tag and the pointer conflicts
each other. The code is perfectly compiled if the static member tag is
omitted. I was using gcc version 2.8.1
Best regards
Tamas Varga
//----------------------------------------------------------------------
template <class T> class Something {
T ptr;
static char* type;
};
template <class T> char* Something<T>::type=0;
class Thing : public Something<Thing*> {
int data;
};
main()
{
Thing a;
}
//----------------------------------------------------------------------
--
Tamas VARGA - PhD Student
Budapest University of Technology and Economics phone: +36-1-437-7087
High Speed Networks Laboratory http://hsnlab.ttt.bme.hu/~varga
ERICSSON Hungary, Traffic Lab mailto:address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Using inherited class pointer as template class argument with static class meber,
Tamas Varga <=