Article ID: 165803
Article Last Modified on 7/5/2005
/* Compile options needed: none
*/
template <int I>
struct C
{
int a[I] ;
};
template <int I>
int F(C<I> a)
{
return I ;
}
int main ()
{
int i;
C<4> CObj ;
i = F(CObj);
// Workaround: Comment the line above.
// Uncomment the following line
// i = F<4>(CObj);
return 0 ;
}
Keywords: kbbug kbfix kbnoupdate kbvc600fix KB165803