This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/86360] "inline" (and neither static nor extern) function not emitted.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jun 2018 09:57:41 +0000
- Subject: [Bug c/86360] "inline" (and neither static nor extern) function not emitted.
- Auto-submitted: auto-generated
- References: <bug-86360-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86360
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
More than that, I don't think it's allowed to. See 6.7.4 p7 in the C11
standard.
"An inline definition does not provide an external definition for the function,
and does not forbid an external definition in another translation unit."