This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiler bug?


On Tue, Apr 08, 2003 at 01:58:59PM +0200, Carlo Wood wrote:
>     template<typename T>
>       int Outer<T>::Inner::s[sizeof(T)];

On second thought, this case needs to be added too:

    template<typename T>
      struct Outer
      {
	struct Inner
	{
	  T c;
	};
	static int s[];
    };

    template<typename T>
      int Outer<T>::s[sizeof(Inner)];

    extern template class Outer<char>;

which also compiles without errors.
So, the conclusion of my last mail doesn't change.
I vote for a bug :)

-- 
Carlo Wood <carlo at alinoe dot com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]