digitalmars.D.bugs - [Issue 21725] New: Specifying null as bitfields variable name now
- d-bugmail puremagic.com (28/28) Mar 17 2021 https://issues.dlang.org/show_bug.cgi?id=21725
https://issues.dlang.org/show_bug.cgi?id=21725 Issue ID: 21725 Summary: Specifying null as bitfields variable name now fails Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: dlang-bugzilla thecybershadow.net //////// 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 --
Mar 17 2021