December 04, 2018 [Issue 19465] New: dmd segfaults on endless mixin recursion | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19465 Issue ID: 19465 Summary: dmd segfaults on endless mixin recursion Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: dkorpel@live.nl Code: ``` enum string s = "__traits(compiles, mixin(s))"; static if (__traits(compiles, mixin(s))) { enum b = 2; } ``` Output: Segmentation fault (core dumped) Concocted example, not something I encountered in actual code. Still, "dmd should never segfault" so filing this as a minor bug. -- |
Copyright © 1999-2021 by the D Language Foundation