Bug 23419 – grammar error in std/experimental/allocator/building_blocks/segregator.d

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2022-10-16T05:30:16Z
Last change time
2024-12-01T16:40:35Z
Assigned to
No Owner
Creator
Garrett D'Amore
Moved to GitHub: phobos#10504 →

Comments

Comment #0 by garrett — 2022-10-16T05:30:16Z
This is protected by Stddoc but this is not compilable if you change the version to something that should build: ``` version (StdDdoc) { /** The alignment offered is the minimum of the two allocators' alignment. */ enum uint alignment; ```
Comment #1 by dlang-bugzilla — 2022-10-16T05:59:16Z
It is grammatically correct (enum is parsed as a storage class here), but it is not semantically correct.
Comment #2 by garrett — 2022-12-17T16:56:18Z
Most likely this should be const instead of enum.
Comment #3 by robert.schadek — 2024-12-01T16:40:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10504 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB