[Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu

ibuclaw at gdcproject dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 11 15:28:24 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://github.com/dlang/dm
                   |                            |d/pull/13805

--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Raised pull request in upstream dmd.

Why the new version works but the old doesn't is anyone's guess though.  It's
the difference between:

---
T tmp = T(args);
__builtin_memcpy(p, (void*)&tmp, sizeof(T));
---
and
---
new(p) T(args);
---

As far as I can tell, both should end up with the same outcome.


More information about the Gcc-bugs mailing list