Issue 12740 - DMD accepts invalid version syntax

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