https://issues.dlang.org/show_bug.cgi?id=15478
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |[email protected] Hardware|x86_64 |All OS|Linux |All --- Comment #1 from [email protected] --- Looks like dmd doesn't realize that it's a function call between the brackets. Adding empty parentheses is a workaround. Here's a slightly smaller test case that shows a different error, but I suspect the same root cause: ---- int bug() { return 0; } void main() { int[bug()] bar1; /* works */ int[bug] bar2; /* Error: index is not a type or an expression */ } ---- --
