A
Al Grant
VC++ .NET 7.1 gives me an internal error from this code.
It worked fine in VC++ 6.0 and other compilers.
Are there any patches/SP's available for the 7.1 compiler?
template<typename T> struct a { char d; T o; };
#define A(T) (sizeof(a<T>) - sizeof(T))
template<int N> struct AS { char x[N]; };
template<typename T> AS<A(T)> AF(T const &);
#define AE(E) sizeof(AF(E))
int main(int n, char **) { return AE(n); }
/* ends */
It worked fine in VC++ 6.0 and other compilers.
Are there any patches/SP's available for the 7.1 compiler?
template<typename T> struct a { char d; T o; };
#define A(T) (sizeof(a<T>) - sizeof(T))
template<int N> struct AS { char x[N]; };
template<typename T> AS<A(T)> AF(T const &);
#define AE(E) sizeof(AF(E))
int main(int n, char **) { return AE(n); }
/* ends */