
20 Jan
2007
20 Jan
'07
5:56 p.m.
I think it's not a bug, for example comeau doesn't compile this: template<int x> class C { typedef char arr[x]; }; C<0> c; Which is almost the same: class "uses" the type that isn't valid (or there are some words in standard about this case?) So the problem is not that compiler does instantiate member (btw, maybe it doesn't try to), it's that member has illegal type.