https://issues.dlang.org/show_bug.cgi?id=18878
Issue ID: 18878 Summary: Short-circuiting && not behaving correctly Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: turkey...@gmail.com Well, this is not okay! enum isInternal(string field) = field.length >= 2 && field[0..2] == "__"; pragma(msg, isInternal!"x"); > error : string slice `[0 .. 2]` is out of bounds My code used to compile. --