02-06-2014 07:55 AM - edited 02-06-2014 07:56 AM
Hi again,
#pragma pack(push,1)
typedef struct
{
char sub_c;
} SUBSTRUCT;
#pragma pack(pop)
#pragma pack (push,8)
typedef struct
{
char c;
SUBSTRUCT sub1;
struct
{
int i;
} sub2;
} BUGGY_STRUCT_AGAIN;
#pragma pack (pop)
BUGGY_STRUCT_AGAIN s = {0};
int main (int argc, char *argv[])
{
return 0;
}
fails to compile, too.
Even with f1 patch.
02-06-2014 09:00 AM
Hello CVI-User,
This appears to be a bug in our run-time checking. I have opened bug #450292 to track it and as a workaround I could suggest disabling run-time checking or using #pragma pack (push,8) only if necessary.
Best regards,
= Nelu F. || National Instruments.
04-08-2014 01:42 PM
CVI-User,
Are you okay with the workarounds suggested by Nelu until we can fix the issue in the next release?