[Issue 22713] New: ImportC: op= not correctly implemented for bit fields
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 30 07:59:57 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22713
Issue ID: 22713
Summary: ImportC: op= not correctly implemented for bit fields
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
struct S
{
unsigned int a:2, b:2;
};
int test()
{
S s;
s.a = 3;
s.a = s.a + 2; // works
s.a += 2; // incorrect code generated
return s.a;
}
--
More information about the Digitalmars-d-bugs
mailing list