Thread overview
[Issue 9552] New: DMD crashed when taking member delegate from __traits(getOverloads)
Feb 20, 2013
Gor Gyolchanyan
Feb 20, 2013
Gor Gyolchanyan
Feb 21, 2013
Maxim Fomin
Feb 21, 2013
Maxim Fomin
Feb 22, 2013
Kenji Hara
Feb 23, 2013
Walter Bright
February 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9552

           Summary: DMD crashed when taking member delegate from
                    __traits(getOverloads)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: gor.f.gyolchanyan@gmail.com


--- Comment #0 from Gor Gyolchanyan <gor.f.gyolchanyan@gmail.com> 2013-02-20 08:47:17 PST ---
class Test
{
    void f() { }
}

void main()
{
    auto test = new Test;
    auto method = &(__traits(getOverloads, test, "f")[0]); // DMD crashes
}

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


Gor Gyolchanyan <gor.f.gyolchanyan@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru
           Severity|major                       |regression


--- Comment #1 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-21 06:13:18 PST ---
This compiles in 2.058 and not in 2.059

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



--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-21 07:05:53 PST ---
Seems to be:

e0e17a035726252b1ec61be2a64aa58cc30d528c is the first bad commit
commit e0e17a035726252b1ec61be2a64aa58cc30d528c
Author: k-hara <k.hara.pg@gmail.com>
Date:   Sun Jun 5 12:45:21 2011 +0900

    fix Issue 7552 - Cannot get and combine a part of overloaded functions

    FuncAliasDeclaration now has flag that its member funcalias is overloaded.
    And it is used as an element of __traits(getOverloads) due to represent the
function symbol isn't overloaded.

:040000 040000 a7f72c89f631bb0ae5ce2105d114141897e5061b
1aa8c2b9741ff16c1f33b9b9bf613c0b78817e28 M    src
:040000 040000 e080b17e5d32a423553f4f7dcf0edd5af0ee012d
83836298f6b8376175a4f34987788cbd11c0b91d M    test

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull


--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2013-02-22 05:36:55 PST ---
https://github.com/D-Programming-Language/dmd/pull/1684

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


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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