https://issues.dlang.org/show_bug.cgi?id=15369

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
           Severity|normal                      |regression

--- Comment #1 from Kenji Hara <[email protected]> ---
Reduced test case (Note that the reproduction ratio is not 100%):

import core.stdc.stdio;

struct Msgtable
{
    const(char)[] ident;
    const(char)* name;
};

Msgtable[] msgtable =
[
    { "empty", "" },
];

void main()
{
    auto id = msgtable[0].ident;
    auto p = msgtable[0].name;

    printf("empty -> p = %p >>>%s<<<\n", p, p);
}


Introduced in:
https://github.com/D-Programming-Language/dmd/pull/5220

--

Reply via email to