www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8514] New: dmd generate bug that segfault in very weird situation.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514

           Summary: dmd generate bug that segfault in very weird
                    situation.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: deadalnix gmail.com



A sample code :

module a.main;

class A {
    A[] a;
}

class B {
    A foo(A a) {
        return a;
    }
}

import std.algorithm;
import std.array;

auto bar(A a) {
    auto b = new B;
a.a.map!(s => b.foo(s)).array;
}

void main() {
    auto a1 = new A;
    auto a2 = new A;

    a1.a = [a2];

    bar(a1);
}

module b.b;

import std.string;

Linking both is important, as well as importing std.string . The usage of map
require the delegate to be templated one.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 06 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514




---
*** Issue 8506 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 26 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514


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

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



---
Seems to be the same as 8854 and 8832.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 26 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |braddr puremagic.com



---
Would someone care to throw this at dustmite to reduce it?  A smaller test case
will be required for the test suite and would help make it easier to debug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 26 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514




---

 Would someone care to throw this at dustmite to reduce it?  A smaller test case
 will be required for the test suite and would help make it easier to debug.
Filed new 8899 because the topic is large and summarizes information from other issues. Hope it helps. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 26 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514





 Would someone care to throw this at dustmite to reduce it?  A smaller test case
 will be required for the test suite and would help make it easier to debug.
It is dustmited already. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 27 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8514


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

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



---
Fixed in issue 8774

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 27 2012