...Problem with static in templates

Johannus Noordanus johannes_noordanus@tasking.nl
Wed Jan 6 07:16:00 GMT 1999


The attachment, and compiler version:

AVL > g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)

-- 
Johannes Noordanus                                 Software Engineer
----------------------------------------------------------------------
voice:  +31 33 455 85 84                           Tasking Software BV
fax:    +31 33 455 86 12                           Plotterweg 31
email:  Johannes_Noordanus@tasking.com             3821 BB  Amersfoort
WWW:    http://www.tasking.com                     The Netherlands
------------> Quality Development Tools Worldwide <-------------------
template<class T>
class X
{
    public:
        X();
        X(T t);
        static T s;
};


template<class T>
X<T>::X()
{
}

template<class T>
X<T>::X(T t)
{
    s = t;
}

main()
{
    X<int> aa(10);
    X<char *> bb;
}




More information about the Gcc-bugs mailing list