
8 Aug
2004
8 Aug
'04
5:43 p.m.
On Aug 8, 2004, at 3:21 AM, Maxim Yegorushkin wrote:
I've just found out that the following code won't compile on MSVC7.1:
struct some { struct __declspec(align(32)) align {}; align a; };
void f(some s); // error C2719: 's': formal parameter with __declspec(align('32')) won't be aligned
int main() { some s; f(s); }
Was that the reason for not adding __declspec(align(x)) support for MSVC?
It wasn't added because nobody has added it. If it works, we can add support for it. Would you like to come up with a patch? Doug