Skip to content

Commit fa9e048

Browse files
author
MarcoFalke
committed
refactor: Use immediate lambda to work around GCC bug 117966
1 parent d73f37d commit fa9e048

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pubkey.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ int ecdsa_signature_parse_der_lax(secp256k1_ecdsa_signature* sig, const unsigned
192192
* For an example script for calculating H, refer to the unit tests in
193193
* ./test/functional/test_framework/crypto/secp256k1.py
194194
*/
195-
constexpr XOnlyPubKey XOnlyPubKey::NUMS_H{"50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0"_hex_u8};
195+
constexpr XOnlyPubKey XOnlyPubKey::NUMS_H{
196+
// Use immediate lambda to work around GCC-14 bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117966
197+
[]() consteval { return XOnlyPubKey{"50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0"_hex_u8}; }(),
198+
};
196199

197200
std::vector<CKeyID> XOnlyPubKey::GetKeyIDs() const
198201
{

0 commit comments

Comments
 (0)