From nobody Tue Aug 26 03:40:01 2025 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 4c9thd1cwBz667xb for ; Tue, 26 Aug 2025 03:40:01 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c9thd14jbz47lc for ; Tue, 26 Aug 2025 03:40:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756179601; 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=Sd4vHafmlnA9x4xjGj60+vtyyaEeUz94W1GefIhpALA=; b=DtjfH6raOkQbKv+WMFI+PfA6nRDcM8lJRywUkGruG9wYpSB6RtH7ifqkdd2U0pFC8GjE0i jXEkyJgRVBsVY88Io8fx2t8yDvSzH/8W2SlS8oy51DXbN9pH+JXnoBkmcTkb8l+IkPgfdP G4MnE3E5uZ5WsCE3EcgglP0ioHZXwXK0fVJMhep9vK5Hw82ZL2Vwl0Ld58Pe8EfZYqw2Z2 CQBIOGaiC2uBpOCzgE79i+Wbwbf+pWAPfGGPXejC3iID3E30GzdZ3O6+V/+5lQ1Ze2MT4C WORLlKSf2vrtekJujE7g6kru0NzDM3mJZcOQCAPJviFzzwq1WxxnIiXAr2qPeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756179601; 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=Sd4vHafmlnA9x4xjGj60+vtyyaEeUz94W1GefIhpALA=; b=yVc8DgIml7LJ69o4DtTNPcwHc5EBEbBOWJzGJ0E1qhneLZB9qBMNW7icLueWco1gEqJwXv tcTmRMShVpjHA8L4Uybvz9HgRRHGZkSmE0cO4rcmyOsR5A5zjh6RTd2ZnCOYBzT16scR1e 0fk2285+DozowZglSx42P1ukOZl8OtQzTYoX1WOgOTmVWl+lRZ2tcY8R7CXxYmg9Ix9cVm gDLQton2j7COBK9sSRMInwyoy7ogc4111yX35oiuvfk8+OojJrmc3q1o+xclrAgxMCwAd2 4VYp7thoSNFzmS/LFFWWrHxmFHqidX8WqgvoIUTa+m+McJQehiwWcB2GmPofDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756179601; a=rsa-sha256; cv=none; b=kC1Ixkf01vcDDsCJqmvfwMbGCjgJqkz4Cr57Tywe5TVsb4iUiq68P8Wu4mzhz2yoNfnKgV a0w4q1HXoFJTWLpWwJ2gwOWSXinRDOfpiQTpHRsU3ZF/MWmRk815lWWb8i3eT1DvymK/yu vxylh7K+CJBZx/PN6Cp83unBGFTW6zByexcnMqB3zjSQetaQw8vFI5S6VYnUOvxpV+Akyv 3qWx9kh5QaVMHniWhAZRXLfcTfiCC2wrjK7oML1NZSArr5g2MWzFQg55ZkohwydxXhJrs/ E//tty3jFuS6jZtnF9c9DvMKRJnEx+7+6ykzyt0D3/XvyeRPZEgr/ugWhxP+cA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4c9thd0hBWz3hp for ; Tue, 26 Aug 2025 03:40:01 +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 57Q3e0dA072183 for ; Tue, 26 Aug 2025 03:40:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57Q3e00k072182 for bugs@FreeBSD.org; Tue, 26 Aug 2025 03:40:00 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 289103] The C++ code fails in clang and succeeds in gcc Date: Tue, 26 Aug 2025 03:40:01 +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.3-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: 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 attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D289103 Bug ID: 289103 Summary: The C++ code fails in clang and succeeds in gcc Product: Base System Version: 14.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org Created attachment 263238 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D263238&action= =3Dedit testcase.shar The attached testcase fails in clang but succeeds in gcc. They do some manipulations with SIMD vectors. This code is extracted from the port audio/cardinal. It succeeds in 14.2 but fails in 14.3 - likely due to clang update. The error messages: $ ./run.sh=20 In file included from main.cpp:3: In file included from /usr/include/c++/v1/complex:266: In file included from /usr/include/c++/v1/cmath:316: In file included from /usr/include/c++/v1/__math/hypot.h:15: In file included from /usr/include/c++/v1/__math/exponential_functions.h:17: /usr/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic>::val= ue' 32 | static_assert((is_arithmetic<_Args>::value && ...)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/complex:1110:47: note: in instantiation of template cla= ss 'std::__promote, float>' requested here 1110 | inline _LIBCPP_HIDE_FROM_ABI complex::type> pow(const complex<_Tp>& __x, const _Up& __y) { | ^ main.cpp:182:43: note: while substituting deduced template arguments into function template 'pow' [with _Tp =3D rack::simd::float_4, _Up =3D float, $= 2 =3D (no value)] 182 | rack::simd::float_4 globalSends =3D rack::simd::pow(globalSends, globalAuxSendScalingExponent); | ^ main.cpp:182:80: warning: variable 'globalSends' is uninitialized when used within its own initialization [-Wuninitialized] 182 | rack::simd::float_4 globalSends =3D rack::simd::pow(globalSends, globalAuxSendScalingExponent); | ~~~~~~~~~~~=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~ 1 warning and 1 error generated. [yuri@yv /usr/ports/audio/cardinal/testcase]$ --=20 You are receiving this mail because: You are the assignee for the bug.=