https://issues.dlang.org/show_bug.cgi?id=16665
Issue ID: 16665 Summary: static assert is only checked after the following dependent type declaration Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: kolo...@bk.ru For this code -------- import std.meta; alias tuple = AliasSeq!(); static assert(tuple.length == 2); alias t0 = tuple[0]; -------- DMD gives the following errors: bug.d(4): Error: tuple index 0 exceeds 0 bug.d(3): Error: static assert (0LU == 2LU) is false I expect static assert to be checked first. --