Skip to content

Fix incorrect non-constexpr error in functions creating parametric structs. - #4933

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_975110867
Sep 8, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_975110867

Conversation

@copybara-service

Copy link
Copy Markdown

Fix incorrect non-constexpr error in functions creating parametric structs.

The issue occurs when an equivalent parametric struct context has two creation sites in parametric functions. The parametric context, which is reused, would end up referring back to the instantiation expr at the first site (which is not usable at the 2nd site) before this change.

Fixes #4895

…ructs.

The issue occurs when an equivalent parametric struct context has two creation sites in parametric functions. The parametric context, which is reused, would end up referring back to the instantiation expr at the first site (which is not usable at the 2nd site) before this change.

Fixes #4895

PiperOrigin-RevId: 977935044
@copybara-service
copybara-service Bot merged commit 4b4ce36 into main Sep 8, 2026
5 checks passed
@copybara-service
copybara-service Bot deleted the test_975110867 branch September 8, 2026 15:50

This branch was previously deployed

1 inactive deployment
github-pages 4b4ce366 Deployed Sep 8, 2026 by copybara-service[bot] via deploy #12671
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.

template parameters with same value binding in different functions can loose constexpr status.

1 participant