http://d.puremagic.com/issues/show_bug.cgi?id=9773

           Summary: ref parameter with default value should not compile
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Rob T <[email protected]> 2013-03-21 01:00:44 PDT ---
This should not compile.

void f( ref string a = "" )
{
   a = "crash and burn";
}

int main()
{

  f(); // seg fault
  return 0;
}

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

Reply via email to