Bug 18137 – nothrow attribute is not written for some member functions to the JSON file

Status
NEW
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-28T08:14:05Z
Last change time
2024-12-13T18:55:49Z
Assigned to
No Owner
Creator
ZombineDev
Moved to GitHub: dmd#17828 →

Attachments

IDFilenameSummaryContent-TypeSize
1672symbols.jsDiff between the json generated by DMD v2.072.2 and DMD v2.077.1text/plain444588

Comments

Comment #0 by petar.p.kirov — 2017-12-28T08:14:05Z
Created attachment 1672 Diff between the json generated by DMD v2.072.2 and DMD v2.077.1 When migrating dlang.org's dpl-docs from DMD v2.072.2 to DMD v2.077.1 in https://github.com/dlang/dlang.org/pull/1926 I noticed that sometimes some function attributes are not written to the JSON doc metadata file. I have attached the diff between the two JSON files as seen on CyberShadow's DAutoTest. For the most part, the upgrade was a clear improvement (e.g. core.stdc.string.strchr), but I noticed that some member functions in druntime were missing their nothrow attribute, for example core.memory.GC.malloc, core.thread.Thread.start, core.thread.Fiber.this, etc.).
Comment #1 by bugzilla — 2018-12-16T11:20:27Z
A much smaller test case would be most helpful.
Comment #2 by razvan.nitu1305 — 2021-10-28T15:25:32Z
I know that its already been 4 years since this issue was reported, but a reproducible test case will help a lot to fix this issue.
Comment #3 by robert.schadek — 2024-12-13T18:55:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17828 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB