Bug 16646 – Header generation on druntime

Status
RESOLVED
Resolution
WORKSFORME
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-29T12:48:55Z
Last change time
2022-03-24T13:19:13Z
Assigned to
No Owner
Creator
Temtaime

Comments

Comment #0 by temtaime — 2016-10-29T12:48:55Z
druntime\core\atomic.di(238): Error: asm statement is assumed to be @system - mark it with '@trusted' if it is not But compiling this file is OK.
Comment #1 by temtaime — 2016-10-29T12:56:25Z
Also it generated strange statements. ref rename(names...)() return if (names.length == 0 || allSatisfy!(isSomeString, typeof(names))) to ref return rename(names...)() if (names.length == 0 || allSatisfy!(isSomeString, typeof(names))) which leads to errors.
Comment #2 by razvan.nitu1305 — 2022-03-24T13:19:13Z
I cannot reproduce this. I just used the header generator on the latest version of druntime's core.atomic and the resulting .di file compiles successfully. There were numerous fixes for the header generator since 2016 so I assume this was fixed.