[Issue 1421] New: Stack Overflow when using __traits(allMembers...)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 15 12:40:47 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1421

           Summary: Stack Overflow when using __traits(allMembers...)
           Product: D
           Version: 2.003
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jascha at mainia.de


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);
}


-- 



More information about the Digitalmars-d-bugs mailing list