Compiler bug?
Carlo Wood
carlo@alinoe.com
Tue Apr 8 12:05:00 GMT 2003
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@alinoe.com>
More information about the Libstdc++
mailing list