[Issue 7109] New: [CTFE] Error with slicing ref string
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 14 05:15:36 PST 2011
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: nobody at puremagic.com
ReportedBy: youxkei at gmail.com
--- Comment #0 from Hisayuki Mima <youxkei at 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: -------
More information about the Digitalmars-d-bugs
mailing list