[Issue 9634] [CTFE] wrong code concatenating arrays of structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 17 23:48:14 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9634


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|[CTFE] appending a slice of |[CTFE] wrong code
                   |an array of structs to      |concatenating arrays of
                   |itself                      |structs


--- Comment #12 from Don <clugdbug at yahoo.com.au> 2013-06-17 23:48:12 PDT ---
Reduced test case shows it doesn't even require ~=.
---------
struct Bug9634 {
    int raw;
}

bool bug9634()
{
    Bug9634[] jr = [Bug9634(42)];
    Bug9634[] ir = jr ~ jr;
    assert(&ir[0] != &ir[1]);
    return true;
}

static assert(bug9634());

-- 
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