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 with compiler optimizations enabled. > > I think the solution to the problem is that it simply should not > compile.
Of course it shouldn't compile. It's clearly an "accepts-invalid" bug. Literals aren't lvalues, and ref only accepts lvalues. - Jonathan M Davis