seg fault due to a ref parameter with default value

2013-03-20 Thread Rob T
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

Re: seg fault due to a ref parameter with default value

2013-03-20 Thread bearophile
Rob T: Any comments before I submit a bug report? I don't see a crash (Win 32) but it should not compile. Bye, bearophile

Re: seg fault due to a ref parameter with default value

2013-03-20 Thread Rob T
On Thursday, 21 March 2013 at 00:30:41 UTC, bearophile wrote: Rob T: Any comments before I submit a bug report? I don't see a crash (Win 32) but it should not compile. Bye, bearophile I'm running it on Linux 64 with compiler optimizations enabled. I think the solution to the problem is th

Re: seg fault due to a ref parameter with default value

2013-03-20 Thread deadalnix
On Wednesday, 20 March 2013 at 23:12:37 UTC, Rob T wrote: 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 I

Re: seg fault due to a ref parameter with default value

2013-03-20 Thread Jonathan M Davis
On Thursday, March 21, 2013 05:07:14 Rob T wrote: > On Thursday, 21 March 2013 at 00:30:41 UTC, bearophile wrote: > > Rob T: > >> Any comments before I submit a bug report? > > > > I don't see a crash (Win 32) but it should not compile. > > > > Bye, > > bearophile > > I'm running it on Linux 64

Re: seg fault due to a ref parameter with default value

2013-03-21 Thread Rob T
http://d.puremagic.com/issues/show_bug.cgi?id=9773