This bug was originally reported as part of bug 3174. int goo(int i) pure { return i; } // OK auto foo(int i) pure { return i; } // Can't parse class A { auto hoo(int i) pure { return i; } // can't parse const boo(int i) const { return i; } // can't parse auto coo(int i) const { return i; } // can't parse auto doo(int i) immutable { return i; } // can't parse }
https://github.com/D-Programming-Language/dmd/commit/6a15077f8189e1ef203565edaebc766446aa105b
*** Issue 4860 has been marked as a duplicate of this issue. ***