February 10, 2016 [Issue 15668] New: [REG] __LINE__ evaluated at declaration context | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15668 Issue ID: 15668 Summary: [REG] __LINE__ evaluated at declaration context Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: public@dicebot.lv --- 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 -- |
Copyright © 1999-2021 by the D Language Foundation