January 24, 2008 [Issue 1803] New: Stack overflow on manifest constant of struct within struct | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1803 Summary: Stack overflow on manifest constant of struct within struct Product: D Version: 2.010 Platform: PC OS/Version: Windows Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: sardonicpresence@gmail.com The following code results in a Stack overflow in 2.0.10 under Windows: public struct Overflow { enum Overflow constant = {}; } Works fine for classes. Adding member fields to struct and initialiser doesn't change the crash. -- |
Copyright © 1999-2021 by the D Language Foundation