https://issues.dlang.org/show_bug.cgi?id=19081 --- Comment #2 from Yuxuan Shui <yshuiv7 at gmail.com> --- This is because, at statement level, enum is also a storage class: enum X = 10; I wonder why declaring enum without a UDA works at statement level. I smell terrible hacks. --