Bug 21542 – core.lifetime.move cannot be evaluated at compile time

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-01-11T20:03:14Z
Last change time
2024-12-07T13:40:54Z
Assigned to
No Owner
Creator
Paul Backus
Moved to GitHub: dmd#17419 →

Comments

Comment #0 by snarwin+bugzilla — 2021-01-11T20:03:14Z
The following example program fails to compile as of DMD 2.094.2: --- import core.lifetime: move; struct NoCopy { @disable this(this); } NoCopy fun(NoCopy x) { return move(x); } enum y = fun(NoCopy()); --- The compiler produces the following error: --- /usr/include/dmd/druntime/import/core/lifetime.d(1804): Error: memcpy cannot be interpreted at compile time, because it has no available source code --- This issue is related to, but distinct from, issue 8991--that issue is a DMD bug, whereas this one is a Druntime bug.
Comment #1 by robert.schadek — 2024-12-07T13:40:54Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17419 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB