Bug 23394 – Multiple pragma(startaddress) does not result in error

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-10-07T14:27:01Z
Last change time
2024-12-13T19:24:56Z
Assigned to
No Owner
Creator
Dennis
Moved to GitHub: dmd#20162 →

Comments

Comment #0 by dkorpel — 2022-10-07T14:27:01Z
This came up in https://github.com/dlang/dmd/pull/14512#discussion_r985554928 No pressure in fixing this since the feature is rarely used, but: ``` void f() {} void g() {} pragma(startaddress, f); pragma(startaddress, g); ``` Should raise an error.
Comment #1 by robert.schadek — 2024-12-13T19:24:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20162 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB