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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] ---
I don't understand something here.  The in-contract of toUTF8 asserts that the
dchar must be valid... but why does the assert not trigger at runtime (even in
spite of not compiling with -release).  This doesn't seem like a Phobos bug; it
seems to be a bug in the compiler for "optimizing" away the assert just because
it thinks that dchar's cannot have invalid values.

--

Reply via email to