Bug 20045 – bogus error: "integer constant expression expected instead of (uint).sizeof"

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-07-13T08:23:04Z
Last change time
2019-07-15T00:52:10Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
ag0aep6g

Comments

Comment #0 by ag0aep6g — 2019-07-13T08:23:04Z
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