--- void foo ( int line = __LINE__ ) ( int x = 42 ) { static assert (line == 8); } void main() { foo(); } // Error: static assert (1 == 8) is false // instantiated from here: foo!1 --- According to `git bisect` regression was introduced by https://github.com/D-Programming-Language/dmd/pull/4261 (between 2.067 and 2.068) and it still fails on 2.070
Fix attempt https://github.com/D-Programming-Language/dmd/pull/5435
Merged PR into stable branch: https://github.com/D-Programming-Language/dmd/pull/5441 Commit: https://github.com/D-Programming-Language/dmd/commit/8ec7ea967f120770741f12a4fef9780ba9f394c3