http://d.puremagic.com/issues/show_bug.cgi?id=7109
Summary: [CTFE] Error with slicing ref string Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: youx...@gmail.com --- Comment #0 from Hisayuki Mima <youx...@gmail.com> 2011-12-14 22:15:34 JST --- struct Struct{ string str; } void bar(ref string str){ str = str[0..0]; } static assert({ auto s = Struct("foo"); bar(s.str); return true; }()); This code does't work. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------