From nobody Fri Jun 24 19:12:11 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8B368860C0B for ; Fri, 24 Jun 2022 19:12:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LV6F71xBhz4V6y for ; Fri, 24 Jun 2022 19:12:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2268415F0A for ; Fri, 24 Jun 2022 19:12:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25OJCBwc070773 for ; Fri, 24 Jun 2022 19:12:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25OJCBpt070769 for toolchain@FreeBSD.org; Fri, 24 Jun 2022 19:12:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 264877] clang-14 fails with unreasonable cryptic message on a valid C++ code Date: Fri, 24 Jun 2022 19:12:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656097931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PezMl6DXS/FRQl/fF/6dXD2AIIj+/6LVW3hUDoF5VIY=; b=Czrca9aj5zWD6rwDyHakQuM2D3DV8+rPcCX9sGCvFnue7yRj1daBllAj6/60NGYLv6OJKp OMH3/BLdsrbVvHB3N8B789H7l1AanH6yho1BDM9IMqp45v6BG8J0TmfeK2Z7X/hXfQjC3e jT8HxDKSFWcVrRbvmM7fsXnA+JuIkVv8NTbDZj6BqLCrDqjzA7TiRTlXE55LD2N/4HO6J2 BUhIX5qaIimSkB21SHkxFIgvnuPSg9S47yWrezMbpE+ndV0MeY5eS3XqoJPHZw+NVKEkkc TouDlfWlLEYNqUrKcxI2cfBRb46ZI8Zo40pZi66nyStepe2iy1B1Oj4RSs0RUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656097931; a=rsa-sha256; cv=none; b=T0EUpNfT+FTC2+nKR3sgpFqsi7kgde8o1QoJ4A2pDl6K1k3pPt1xBD7cYxmgYmAW0KJTBH zaPKA82C3kmJuzlH2T4+eRdz7l7FbjovMaoAX1AXTCrbS4RGUAF/1es6UJF3znbcxklx+u v2sRzb6ENaAlXS50WcOXg4THPsw1J0VbOxQfHljeWaSr5cFK32RnMqnPw6rLnWexVzY6Nd Id1/mhOA8rebu3t7QYnmiciO2UxJhhvdW7P2/bYmyiMsLiM28Wr3G4iJ5hNWUncRoeD9lQ uuHLzuMT+GjKmGoNU8G/Y/We2dnc5nCAqYsg8bT0EbUZ2cS4JRLaXxNeV+lRQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264877 Bug ID: 264877 Summary: clang-14 fails with unreasonable cryptic message on a valid C++ code Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: toolchain@FreeBSD.org Reporter: yuri@freebsd.org Attachment #234920 text/plain mime type: Created attachment 234920 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234920&action= =3Dedit test.cpp The attached testcase fails in clang-14, but not in clang-13 and earlier. Failure message: > $ clang++14 test.cpp > ld: error: undefined hidden symbol: std::__1::enable_if<(is_move_construc= tible::value) && (is_move_assignable::value), void>::type std::__= 1::swap(int&, int&) > >>> referenced by test.cpp > >>> /tmp/test-e3003a.o:(main) > clang-14: error: linker command failed with exit code 1 (use -v to see in= vocation) '#include ' is not a proper header for std::swap, so a correct outcome should be one of these two: * fail to find std::swap -- error: no member named 'swap' in namespace 'std' * succeed (through proxy header inclusion) The above error message is incorrect and irrelevant. It indicates a problem= in the toolchain. This is a regression in clang-14. The problem was discovered due to a failure in science/helfem on 14-CURRENT. --=20 You are receiving this mail because: You are the assignee for the bug.=