Thread overview
[Issue 8515] New: [regression] calling function types with default args fails
Aug 06, 2012
Stephan Dilly
Aug 06, 2012
Stephan Dilly
Aug 06, 2012
Walter Bright
August 06, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8515

           Summary: [regression] calling function types with default args
                    fails
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: spam@extrawurst.org


--- Comment #0 from Stephan Dilly <spam@extrawurst.org> 2012-08-06 14:56:05 PDT ---
this code used to work in dmd 2059:

void foo(bool c = true)
{}

void main()
{
    void function(bool c = true) _foo = &foo;

    _foo();
}

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


Stephan Dilly <spam@extrawurst.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |spam@extrawurst.org


--- Comment #1 from Stephan Dilly <spam@extrawurst.org> 2012-08-06 14:56:54 PDT ---
dmd 2.06 says:
"main.d(10): Error: expected 1 function arguments, not 0"

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


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2012-08-06 15:31:02 PDT ---
*** This issue has been marked as a duplicate of issue 3866 ***

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