seg fault due to a ref parameter with default value

Rob T alanb at ucora.com
Wed Mar 20 16:12:35 PDT 2013


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

main()
{

   f(); // seg fault. This should not even compile.

}

I did not see a bug report on this one, but maybe I missed it.

Any comments before I submit a bug report?

--rt


More information about the Digitalmars-d mailing list