Re: Linker error with static data member in templated class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, October 04, 2010 10:27 PM, Ian Lance Taylor wrote:

#if 0
/** This doesn't work **/
template <typename T> C1<&C3<T>::m> C3<T>::op1;
template C1<&C3<int>::m> C3<int>::op1;

This case works fine in mainline gcc, and it looks right to me.  It may
simply be a bug in the version of the compiler you are using.

Ian


That is good to know. In that case I'll migrate up to 4.5.1 and see if that solves the problem.

Thank you for all your help.

Andy




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux