Summary: [CTFE] Error with slicing ref string
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Hisayuki Mima <> 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");
    return true;

This code does't work.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to