← Back to index
|
Original Bugzilla link
Bug 21634 – std.bitmanip: bitfields may generate invalid variable
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-02-13T08:51:54Z
Last change time
2021-02-22T20:02:42Z
Keywords
pull
Assigned to
No Owner
Creator
Berni44
Comments
Comment #0
by bugzilla — 2021-02-13T08:51:54Z
unittest { struct A { mixin(bitfields!( int, "", 1, int, "LINE", 3, int, "", 1, int, "", 3)); } } Should compile, but produces a variable called "__LINE__".
Comment #1
by dlang-bot — 2021-02-16T10:29:47Z
@berni44 created dlang/phobos pull request #7799 "Fix 21634 - std.bitmanip: bitfields may generate invalid variable" fixing this issue: - Fix 21634 - std.bitmanip: bitfields may generate invalid variable
https://github.com/dlang/phobos/pull/7799
Comment #2
by dlang-bot — 2021-02-22T20:02:42Z
dlang/phobos pull request #7799 "Fix 21634 - std.bitmanip: bitfields may generate invalid variable" was merged into master: - 88496f733a956d9e6536069d2bde0eef9c226267 by berni44: Fix 21634 - std.bitmanip: bitfields may generate invalid variable
https://github.com/dlang/phobos/pull/7799