A file consisting only of the line: --- public static nothrow pure extern --- compiles without error. This patch (for D2.027) makes it an error. (It remains OK to end with a colon).
Created attachment 316 [details] fix 2815 Adds: case TOKeof: error("declaration expected following attribute, not EOF"); break; to Parser::parseBlock() in parse.c, by analogy to the behaviour for semicolon.
This appears to already be fixed.