Bug 21725 – Specifying null as bitfields variable name now fails
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-17T11:09:32Z
Last change time
2021-04-27T09:42:44Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2021-03-17T11:09:32Z
//////// test.d ////////
import std.bitmanip;
struct S
{
mixin(bitfields!(
uint, q{foo}, 4,
uint, null, 4,
));
}
////////////////////////
As of 2.096, fails with:
.../src/phobos/std/bitmanip.d(300): Error: static assert: "Variable name expected, found null"
Introduced in https://github.com/dlang/phobos/pull/7793
Comment #1 by dlang-bot — 2021-03-17T11:15:04Z
@CyberShadow created dlang/phobos pull request #7873 "Fix Issue 21725 - Specifying null as bitfields variable name now fails" fixing this issue:
- Fix Issue 21725 - Specifying null as bitfields variable name now fails
https://github.com/dlang/phobos/pull/7873
Comment #2 by dlang-bot — 2021-03-17T12:20:10Z
dlang/phobos pull request #7873 "Fix Issue 21725 - Specifying null as bitfields variable name now fails" was merged into stable:
- a0de72d89cad7ead2252c5cc3d0b291e217b9fb1 by Vladimir Panteleev:
Fix Issue 21725 - Specifying null as bitfields variable name now fails
https://github.com/dlang/phobos/pull/7873
Comment #3 by dlang-bot — 2021-04-25T13:46:04Z
dlang/phobos pull request #7964 "merge stable" was merged into master:
- e16e0b7b97a1ecbb4fa89ce914d9ff12d052397f by Vladimir Panteleev:
Fix Issue 21725 - Specifying null as bitfields variable name now fails
https://github.com/dlang/phobos/pull/7964
Comment #4 by dlang-bot — 2021-04-27T09:42:44Z
dlang/phobos pull request #8012 "merge stable" was merged into master:
- b60108ed3f35f040e78ab9a8515565138b3e6da3 by Vladimir Panteleev:
Fix Issue 21725 - Specifying null as bitfields variable name now fails
https://github.com/dlang/phobos/pull/8012