August 07, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=668





------- Comment #10 from bugzilla@digitalmars.com  2007-08-06 20:06 -------
Please provide a test case.


-- 

August 07, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=668





------- Comment #11 from sean@f4.ca  2007-08-06 20:59 -------
----
// Header.di

class Thread
{
    final char[] name();
    static const int PRIORITY_MIN;
    static const int PRIORITY_MAX;
    static Thread getThis();
    static this(){}
}

----

// Main.d

private import Header;

class Main
{
    void go()
    {
        char[] threadName = Thread.getThis.name;
    }
}

----

C:\> dmd -c -inline -release Main.d


The crucial bit is to have -inline and -release set.  Clearing either of these eliminated the problem.


-- 

October 20, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=668


braddr@puremagic.com changed:

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




------- Comment #12 from braddr@puremagic.com  2007-10-20 04:06 -------
Fixed in 1.022/2.005


-- 

1 2
Next ›   Last »