Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[OWBugzilla] [Bug 1163] New: missing lvalue check

4 views
Skip to first unread message

bugzill...@www.openwatcom.org

unread,
Apr 12, 2015, 7:40:48 PM4/12/15
to openwatco...@openwatcom.org
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.
0 new messages