Am 02.04.20 um 02:30 schrieb Stefan Brüns:
4. also not declared inline: --- void foo(int); inline void foo(int) { return; } ---
That's not what the standard says (http://eel.is/c++draft/dcl.inline#2): A function declaration ([dcl.fct], [class.mfct], [class.friend]) with an inline specifier declares an inline function. Further the compiler can assume that everybody who sees the first declaration also sees the second declaration because of the previously quoted http://eel.is/c++draft/dcl.inline#5: If a function or variable with external or module linkage is declared inline in one definition domain, an inline declaration of it shall be reachable from the end of every definition domain in which it is declared; no diagnostic is required. Kind regards, Aaron -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org