[Issue 21640] New: @live no working with templates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 15 22:53:17 UTC 2021
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: nobody at puremagic.com
Reporter: jlourenco5691 at gmail.com
@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() {}
--
More information about the Digitalmars-d-bugs
mailing list