Thread overview
[Issue 7710] New: Segmentation fault when assigning function to delegate variable
Apr 21, 2012
SomeDude
March 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7710

           Summary: Segmentation fault when assigning function to delegate
                    variable
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: xtzgzorex@gmail.com


--- Comment #0 from Alex Rønne Petersen <xtzgzorex@gmail.com> 2012-03-14 13:05:08 PDT ---
I have no idea if it's valid code, but it does crash DMD.

alexrp@alexrp ~/Projects/tests $ cat test.d
void foo()
{
}

void main()
{
    void delegate() f = foo;
}
alexrp@alexrp ~/Projects/tests $ dmd test.d
Segmentation fault

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7710


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 06:51:07 PDT ---
With 2.059 Win32:

PS E:\DigitalMars\dmd2\samples> rdmd bug.d
bug.d(7): Error: expression foo() is void and has no value

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7710


Alex Rønne Petersen <xtzgzorex@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: -------