[Issue 23064] wrong code generated for bitfield assignment to ?:

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 30 03:57:12 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23064

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
You are correct that C doesn't allow it.

Currently, D accepts it and generates the wrong code.

C++ accepts it, and generates the correct code.

We should either make it an error or do what C++ does.

--


More information about the Digitalmars-d-bugs mailing list