From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A88F3858C3A; Fri, 2 Dec 2022 12:07:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A88F3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669982829; bh=XO49mDRWM4TAb1QrYFn4aA08M7ib4dtlrmgICA1sgLo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gfdL4QshevHEJhDCP5BSCM+9DW78ykqR3qPu0FIvu92PWuKCZYrsSNx02Q86bD6p8 P8mT04xbjymA4TWam7e4MxA1YweF0U/LOmU7jQN96l1NksQziuocNcnn/C9GVe+JLa H50ygzQt924Ah/ecHkE7qEyTn+1ZWVbplGQYHgbM= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107950] partial LTO linking of libbackend.a: gcc/gcc-rich-location.cc:207: undefined reference to `range_label_for_type_mismatch::get_text(unsigned int) const' Date: Fri, 02 Dec 2022 12:07:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107950 --- Comment #1 from Martin Li=C5=A1ka --- Oh, the function has 2 different definitions in C and C++ FE: gcc/c/c-objc-common.cc:range_label_for_type_mismatch::get_text (unsigned /*range_idx*/) const gcc/cp/error.cc:range_label_for_type_mismatch::get_text (unsigned /*range_idx*/) const And so that's why I see the linker error for 'lto' binary, interesting..=