Skip to content

Render requires clauses with level-aware template params#314

Open
kristjanvalur wants to merge 6 commits intogimli-rs:masterfrom
kristjanvalur:pr2a-cxx20-requires-level
Open

Render requires clauses with level-aware template params#314
kristjanvalur wants to merge 6 commits intogimli-rs:masterfrom
kristjanvalur:pr2a-cxx20-requires-level

Conversation

@kristjanvalur
Copy link
Copy Markdown

@kristjanvalur kristjanvalur commented Apr 15, 2026

Summary

  • add level-aware template parameter resolution behavior
  • render requires-clause expressions in template argument contexts

Motivation and Context

This is one part of a larger C++20 Itanium compatibility effort derived from real-world symbol corpus failures.

These C++20-oriented changes are intentionally split into three PRs for reviewability:

This PR focuses only on resolution/renders required to correctly represent C++20-style template argument contexts.

C++20 Example

template <typename T>
requires (sizeof(T) > 4)
void f(T);

A corresponding mangled form can encode the constraint expression as a Q <expression> segment; this PR ensures those requires-clause expressions are rendered with level-aware template parameter resolution.

Scope

  • level-aware template parameter lookup/resolution improvements
  • requires-clause expression rendering in relevant template-arg flows

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