[Issue 13010] New: Use variable range propagation (VRP) for static assert
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 30 04:03:35 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13010
Issue ID: 13010
Summary: Use variable range propagation (VRP) for static assert
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: lio+bugzilla at lunesu.com
This code should work:
void testvrp(ubyte l)
{
immutable int i = l;
static assert(i + 1);
}
--
More information about the Digitalmars-d-bugs
mailing list