[Issue 21876] New: Zero-length static arrays "cannot be read at compile time"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 29 08:31:29 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21876
Issue ID: 21876
Summary: Zero-length static arrays "cannot be read at compile
time"
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: CTFE, rejects-valid
Severity: normal
Priority: P3
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dlang-bugzilla at thecybershadow.net
//// test.d ////
auto test()
{
int[0] a;
return a;
}
enum x = test();
////////////////
--
More information about the Digitalmars-d-bugs
mailing list