[Issue 20045] New: bogus error: "integer constant expression expected instead of (uint).sizeof"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 13 08:23:04 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20045
Issue ID: 20045
Summary: bogus error: "integer constant expression expected
instead of (uint).sizeof"
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ag0aep6g at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list