Bug 17895 – Undefined reference with -inline and static assert

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-10-11T14:30:09Z
Last change time
2022-11-23T09:26:15Z
Assigned to
No Owner
Creator
guus_waals

Attachments

IDFilenameSummaryContent-TypeSize
1661file_17895.txtGives linker errors when compiled with "dmd module.d -inline -main"text/plain486

Comments

Comment #0 by guus_waals — 2017-10-11T14:30:09Z
Created attachment 1661 Gives linker errors when compiled with "dmd module.d -inline -main" Tested with "DMD64 D Compiler v2.076.1-179-g5b86f4575" I attached a small example that causes these undefined references (reduced from a vibe.d module)
Comment #1 by razvan.nitu1305 — 2022-11-23T09:26:15Z
I cannot reproduce this. Compiling with -main -inline yields a successful compilation using git HEAD.