https://issues.dlang.org/show_bug.cgi?id=13064

          Issue ID: 13064
           Summary: Redundant `auto` storage class is allowed for
                    functions
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

This code compiles but shouldn't:
---
auto void f() { }
---

Note that `auto int i;` is already rejected.

--

Reply via email to