[Issue 15668] New: [REG] __LINE__ evaluated at declaration context
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Feb 9 21:55:00 PST 2016
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 at puremagic.com
Reporter: public at 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
--
More information about the Digitalmars-d-bugs
mailing list