https://issues.dlang.org/show_bug.cgi?id=20809
Dennis <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |safe CC| |[email protected] Hardware|x86_64 |All OS|Linux |All --- Comment #8 from Dennis <[email protected]> --- This is important for making Phobos's tempCString @safe: ``` // $(RED WARNING): $(RED Incorrect usage) auto pInvalid1 = str.tempCString().ptr; const char* pInvalid2 = str.tempCString(); // Both pointers refer to invalid memory here as // returned values aren't assigned to a variable and // both primary expressions are ended. ``` --
