Skip to content

Add C++20 compile guard for bundled fmt - #3689

Closed
Tyagiquamar wants to merge 1 commit into
gabime:v1.xfrom
Tyagiquamar:fix/cpp20-bundled-fmt-regression-guard
Closed

Tyagiquamar wants to merge 1 commit into
gabime:v1.xfrom
Tyagiquamar:fix/cpp20-bundled-fmt-regression-guard

Conversation

@Tyagiquamar

Copy link
Copy Markdown
Contributor

Summary

  • Add a C++20 object-library compile check that includes spdlog and exercises bundled fmt formatting.
  • Guards against the constexpr parse failure reported in C++20 compile error #3500 on releases that still bundled fmt v9.

Test plan

  • GitHub Actions PR checks (CI-first A1)

Fixes #3500.

Regression test for constexpr format parsing reported in gabime#3500 on older bundled fmt releases.
@gabime

gabime commented Oct 24, 2026

Copy link
Copy Markdown
Owner

How does it fixes #3500 ? I don't get it

@Tyagiquamar

Copy link
Copy Markdown
Contributor Author

You're right this PR doesn't directly fix #3500. Sorry for the misleading Fixes reference.

The reported error comes from an older bundled fmt v9, while current spdlog uses fmt v12. My change only adds a C++20 compile-time regression check to catch similar failures in future builds.

I'll remove the Fixes #3500 reference and clarify the PR description. If this additional compile check isn't useful for the project, I'm happy to close the PR.

@gabime

gabime commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Closing. Not very relevant to current fmt

@gabime gabime closed this Oct 24, 2026
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.

C++20 compile error

2 participants