From nobody Tue Jan 30 19:43:33 2024 X-Original-To: bugs@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 4TPbFL3cXwz59RH4 for ; Tue, 30 Jan 2024 19:43:34 +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 4TPbFL1FBkz4bVM for ; Tue, 30 Jan 2024 19:43:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706643814; 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=UdoR7k83kfeTGbk97y/WoKf5WtuTixoTMgk0Th0pYFw=; b=HEC3ByExPTmhFZL6vddjPRlbV3GcnuV4I6p/Qfh8H1HVkvBPWGnAKTe/zyC4qShuMnq1Vr sD1csTzpN37iDDRBMgZ2Zpxh4Jax7hJqtlPF+VApTIohoPvbT+RQjyhdq6mOCV5ciRIH9x gagIiCfsHU/RRAxwnUg4WpYbuJeK23tSLQ0wtHr6ac0onu740QL+nUt6vejNAZ80yXtSNs h5SLQYXWd7b66a3x0ALfX/cU9mRQsynEWSxjUPwIi8a5n+kEd9PsXaoyH4I9+iof9jz4d1 IU+Gy0npkwA+CquXla9/U4MCHPkOc9ghDFn5Jiz4OsLqPCB6Enrk1oSns0KiLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706643814; a=rsa-sha256; cv=none; b=CgEp2KC/vt5BDqSj3lCZ5gfJhzQX5lcD3+oNpNO5HA2AhPN2B+KIYUIzBmF0I8dMVwkhi4 h/3uSSQIAY7hj96zu4IPytw4gb8lcLzQr53pisliPaOaDPioqPC/u3AJCO5S0ENJL5Gtuc KaMwqJ/yI/fFOffoUuEKgbk81pkZ3MCN1er5YaO5l84jEIWOL2a2NNCukV48W0LRxUCcNB BRTPDLV/UwibvEnR7xCgA+uoGoxlI8/bh8PRwE6F4yloE8yLcq6IPARZ+KY6X9myLlxVFT hJzCP7aGqxM9/4oUeO8AyElptjUX8kcmnvpX0th3b4osVURIslnafLiZb9awPg== 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 4TPbFL0KmqzpBf for ; Tue, 30 Jan 2024 19:43:34 +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 40UJhXso053481 for ; Tue, 30 Jan 2024 19:43:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40UJhXjJ053480 for bugs@FreeBSD.org; Tue, 30 Jan 2024 19:43:33 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: bugs@FreeBSD.org Subject: [Bug 276738] clang: static_assert conflicts with -std=c++98 -pedantic-errors Date: Tue, 30 Jan 2024 19:43:33 +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: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henri@henrimenke.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276738 Bug ID: 276738 Summary: clang: static_assert conflicts with -std=3Dc++98 -pedantic-errors Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: henri@henrimenke.de Clang cannot compile the following file #include #include with the command c++ -std=3Dc++98 -pedantic-errors -c test.cpp with an error similar to In file included from /usr/include/c++/v1/algorithm:1712: In file included from /usr/include/c++/v1/memory:842: In file included from /usr/include/c++/v1/__algorithm/move.h:12: /usr/include/c++/v1/__algorithm/iterator_operations.h:101:9: error: too many arguments provided to function-like macro invocation "It looks like your iterator's `iterator_traits::reference` does not match the return type of " ^ /usr/include/sys/cdefs.h:284:9: note: macro '_Static_assert' defined here #define _Static_assert(x, y) __Static_assert(x, __COUNTER__) ^ --=20 You are receiving this mail because: You are the assignee for the bug.=