[Issue 20925] pragma(inline) should emit code to the calling CU + appropriate linker flags

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 13 02:37:37 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20925

--- Comment #3 from Manu <turkeyman at gmail.com> ---
It's not clear that it does... it doesn't look like it emits the function to
the calling CU at all. Is the inline a front-end trick in DMD such that it just
doesn't need to emit the function at all?

What happens if you take the address of the function instead of calling it?
Will the link error return?

--


More information about the Digitalmars-d-bugs mailing list