[Bug c/126702] undefined reference to inline function
"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126702
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
In C, if a function is marked as inline, unless marked as extern; the inlined
version is local to the TU but you still need an extern symbol. It is similar
to the "GNU extern inline" (but slightly different) of GNU 90.