http://bugzilla.openwatcom.org/show_bug.cgi?id=1163
Summary: missing lvalue check
Product: Open Watcom C/C++ Compiler
Version: OW 1.9
Platform: All (Generic)
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: normal
Priority: --
Component: wcc386.exe
AssignedTo:
openwatco...@openwatcom.org
ReportedBy:
alexf...@gmail.com
The following program compiles, but shouldn't:
// file: owbg.c
// compile under Windows 7 x64: wcl386 /q /wx owbg.c
#include <stdio.h>
int main(void)
{
struct S { int dummy; } a = { 0 };
(a = a).dummy = 1;
printf("a.dummy = %d\n", a.dummy);
return 0;
}
--
Configure bugmail:
http://bugzilla.openwatcom.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.