[Issue 1269] Compiler crash on assigning to an element of a void-initialized array in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 16 07:14:06 PDT 2007


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


deewiant at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deewiant at gmail.com
           Keywords|                            |ice-on-valid-code
            Summary|Compiler crash on constant  |Compiler crash on assigning
                   |string concat               |to an element of a void-
                   |                            |initialized array in CTFE




------- Comment #1 from deewiant at gmail.com  2007-06-16 09:14 -------
Brought it down to this, nothing to do with strings but rather with the
attempted and failing CTFE of toString (here simplified and renamed f):

int f() {
        // this also causes the crash:
        // int[] a = void;
        int[1] a = void;
        a[0] = 1;
        return 1;
}

const i = f();

It's probably dependent on Issue 1254, but they're subtly different so I won't
set it as a dependency.


-- 



More information about the Digitalmars-d-bugs mailing list