From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1EE5F387087C; Wed, 10 Mar 2021 11:37:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EE5F387087C From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvOTk1MDldIFtPcGVuTVBdICdvbXAgZGVjbGFyZSB0?= =?UTF-8?B?YXJnZXQnIGZvciBnbG9iYWwgdmFyaWFibGUg4oaSICJoYXNuJ3QgYmVlbiBt?= =?UTF-8?B?YXJrZWQgdG8gYmUgaW5jbHVkZWQgaW4gdGhlIG9mZmxvYWRlZCBjb2RlIg==?= Date: Wed, 10 Mar 2021 11:37:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: openmp, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 11:37:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99509 --- Comment #2 from Jakub Jelinek --- (In reply to Tobias Burnus from comment #1) > But with cc it fails with: >=20 > unresolved symbol foo > mkoffload: fatal error: ... For C99 and later you'd need either static inline, or extern inline, inline means the compiler can use the body but that the definition is provided somewhere else if it is not inlined.=