February 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru


--- Comment #10 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-18 03:54:36 PST ---
I cannot reproduce neither of three samples (original, comment 7, comment 8). Tested with today released 2.062 on windows.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481



--- Comment #11 from kekeniro2@yahoo.co.jp 2013-02-18 05:20:02 PST ---
I see.
I did wrong process.
We should get source from 'staging' branch to check if bugs are fixed, not from
'master'.

So, it is not a regression.
Sorry to have bothered you.

And this issue seems to be fixed in 2.062, I agree.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481


jack.un@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jack.un@gmail.com


--- Comment #12 from jack.un@gmail.com 2013-06-02 02:17:47 PDT ---
2.063 has another variant of this still. If i use struct with opCall (because my sort needs a third variable) then it still crashes depending what order it is imported.

Crashes with glue.c:786: virtual void FuncDeclaration::toObjFile(int): Assertion `!vthis->csym' failed.


//crash.d
// import anything a bit complex
import std.stdio; // crash
import crashb;
import std.stdio; //no crash

void main()
{
    auto a = new A;
    a.sort();
}


///crashb.d
module crashb;
import std.algorithm;

struct Sorter
{
    bool opCall(int a, int b)
    {
        return a < b;
    }
}

class A
{
    void sort()
    {
        uint[] s;
        Sorter sorter;
        std.algorithm.sort!sorter(s);
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481



--- Comment #13 from kekeniro2@yahoo.co.jp 2013-07-30 00:08:55 PDT ---
Here is another variant of this.

[DMD2.063.2]
dmd crasha.d crashb.d
===> Assertion failure: '!vthis->csym' on line 783 in file 'glue.c'

// crasha.d ---------------------
import std.algorithm;

// crashb.d ---------------------
import std.algorithm;

class SomeClass {
    void foo() {
        //enum myFilter = function(int s)=>true; // OK
        auto myFilter = function(int s)=>true;   // NG
        int[] r;
        r.filter!myFilter();
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |pull


--- Comment #14 from Kenji Hara <k.hara.pg@gmail.com> 2013-08-11 04:27:14 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2463

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 12, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481



--- Comment #15 from github-bugzilla@puremagic.com 2013-08-11 17:07:14 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/165f15bf71537f863943599f4782b6c0b54c37eb
fix Issue 4481 - ICE(glue.c,!vthis->csym) or compiles, depending on the import
statements order

https://github.com/D-Programming-Language/dmd/commit/2389c3552b44467a77861a61be445eb09a4a376f Merge pull request #2463 from 9rnsr/fix4481

Issue 4481 - ICE(glue.c,!vthis->csym) or compiles, depending on the import
statements order

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 12, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481


Kenji Hara <k.hara.pg@gmail.com> changed:

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


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »