Skip to content

Fix domain and serialization correctness and restore C++11 compatibility - #51

Merged
sunxfancy merged 4 commits into
masterfrom
codex/fix-domains-serialization-cpp11
Oct 30, 2026
Merged

sunxfancy merged 4 commits into
masterfrom
codex/fix-domains-serialization-cpp11

Conversation

@sunxfancy

@sunxfancy sunxfancy commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Random domains can mutate empty containers, ignore fixed sizes, or overflow/truncate numeric ranges. Serialization leaks owned allocations and decodes hexadecimal escapes incorrectly, while public headers and tests use language features unavailable in C++11.

  • Guard container mutation and enforce corpus size constraints; separate integer and floating-point range generation; repair ElementOf instantiation.
  • Give IRObject deep-copy and move ownership, release replaced allocations, and validate/decode escapes safely.
  • Replace newer-language constructs with C++11-compatible templates while preserving single evaluation of comparison operands.
  • Add static-library and single-header regressions, cross-platform full tests, GCC/Clang C++11/14 compatibility jobs, and ASan/UBSan coverage. Regenerate zeroerr.hpp and repair the fuzz example's feature macro.
  • Adapt LLVM printers to StringBuffer and enable optional LLVM tests only when the selected C++ standard meets the installed LLVM version's requirement.
  • Restrict the classic Clang C++14 PFR backend to supported flat PODs, with fallback coverage for string members and recursive pointer members.

Validation:

  • GCC C++11, C++14, and C++17: full builds including examples; all 12 CTest tests pass in each configuration.
  • C++11/14 builds disable GNU language mode and reject C++14/17 extension warnings. The existing optional variadic-macro arguments remain a supported compiler extension.
  • Static-library and single-header domain/serialization regressions pass ASan/UBSan with leak detection.
  • GCC warning-hygiene probes and git diff --check pass.

Clang 19 C++11 and C++14: full builds and all 12 CTest tests pass locally. LLVM 19 printer integration: both tests pass. Windows, macOS, and the CI image's newer compiler/LLVM versions are validated by CI.

@sunxfancy
sunxfancy merged commit f4c1b0c into master Oct 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant