[Issue 15369] id.d(369): Error: Outside Unicode code space
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Nov 21 07:35:38 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15369
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Severity|normal |regression
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
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
--
More information about the Digitalmars-d-bugs
mailing list