www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1421] New: Stack Overflow when using __traits(allMembers...)

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: jascha 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);
}


-- 
Aug 15 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1421


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 2.004


-- 
Sep 28 2007