Bug 1421 – Stack Overflow when using __traits(allMembers...)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-08-15T14:40:00Z
Last change time
2015-06-09T01:14:15Z
Assigned to
bugzilla
Creator
jascha

Comments

Comment #0 by jascha — 2007-08-15T14:40:45Z
the following program produces a stack overflow in object.TypeInfo_Const.next(void*) either changing the interface into a class or removing the extern(Windows) attribute prevents the problem. ------------------------------------- import std.stdio; interface D { extern(Windows): void foo(); int foo(int); } void main() { auto a = __traits(allMembers, D); writefln(a); }
Comment #1 by bugzilla — 2007-09-28T22:12:04Z
Fixed dmd 2.004