[Issue 17654] return value incorrectly considered unique when casting to another pointer type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 15 04:15:10 PDT 2017


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
I actually think it's a design problem. assumeUTF is marked pure. The input is
ubyte and the output is char. This means the compiler can reasonably assume the
output is unrelated to the input and therefore unique. 

This is quite a pickle. We can't very well unmark it pure, and I think the
compiler logic is sound.

--


More information about the Digitalmars-d-bugs mailing list