https://issues.dlang.org/show_bug.cgi?id=21640
Issue ID: 21640
Summary: @live no working with templates
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
@live void alloc(T)()
{
auto p = malloc(4);
} // should not compile with the error: variable `alloc(T).p` is left dangling
at return
void main() {}
--
