Should compile:
alias U = const ubyte[uint.sizeof]*;
Currently gives: "Error: integer constant expression expected instead of (uint).sizeof"
Tested with DMD64 D Compiler v2.087.0.
Comment #1 by dlang-bot — 2019-07-14T18:09:46Z
@Basile-z created dlang/dmd pull request #10174 "fix issue 20045 - bogus error: "integer constant expression expected instead of (uint).sizeof" fixing this issue:
- fix issue 20045 - bogus error: "integer constant expression expected instead of (uint).sizeof
https://github.com/dlang/dmd/pull/10174
Comment #2 by dlang-bot — 2019-07-15T00:52:10Z
dlang/dmd pull request #10174 "fix issue 20045 - bogus error: "integer constant expression expected instead of (uint).sizeof" was merged into stable:
- 7bdcec4afe269873cbdc18acb57d97850bf60f42 by Basile Burg:
fix issue 20045 - bogus error: "integer constant expression expected instead of (uint).sizeof
https://github.com/dlang/dmd/pull/10174