fix: remove constexpr from functions using std::vector for _GLIBCXX_DEBUG compat#22239
Merged
johnathan79717 merged 1 commit intoApr 2, 2026
Merged
Conversation
…EBUG compat hash_to_curve and ECCVMHardcodedVKAndHash::get_all() use std::vector which is not a literal type under _GLIBCXX_DEBUG (added by PR #22218). These functions are never evaluated at compile time, so constexpr is unnecessary.
a3baf90 to
867389f
Compare
johnathan79717
approved these changes
Apr 2, 2026
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Apr 2, 2026
BEGIN_COMMIT_OVERRIDE fix: verify accumulated pairing points in native ChonkVerifier (#22224) chore: enable _GLIBCXX_DEBUG in debug build presets (#22218) feat: add --memory_profile_out flag for Chonk memory profiling (#22145) fix: disable max capacity test in debug + tiny gate separator improvements (#22215) fix: WASM build for memory_profile.cpp (#22231) fix: translator audit fixes (#22242) fix: remove constexpr from functions using std::vector for _GLIBCXX_DEBUG compat (#22239) fix: pippenger edge case (#22256) fix: avoid dereferencing past-the-end vector iterators in serialize.hpp (#22261) chore: crypto primitives external audit response 0 (#22263) feat: switch memory profiling from peak RSS to live heap usage (#22266) fix: replace UB end-iterator dereference in serialize.hpp (#22262) fix: catch exceptions in ChonkBatchVerifier::batch_check (#22270) END_COMMIT_OVERRIDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes ASAN and debug build failures introduced by PR #22218 which added
_GLIBCXX_DEBUGto debug/ASAN build presets.Under
_GLIBCXX_DEBUG,std::vectoris not a literal type (the debug wrapper lacks constexpr constructors), causing compilation errors in anyconstexprfunction that usesstd::vector.Two functions affected:
affine_element::hash_to_curve()— usesstd::vector<uint8_t>internallyECCVMHardcodedVKAndHash::get_all()— returnsstd::vector<Commitment>Neither function is ever evaluated at compile time, so removing
constexpris safe.Test plan
asan-fast) builds clean from scratch (1103/1103 targets, 0 failures)