Skip to content

Draft: Fix deferred init narrowing #1446#1449

Open
dima-starosud wants to merge 1 commit into
hsutter:mainfrom
dima-starosud:fix/deferred-init-narrowing
Open

Draft: Fix deferred init narrowing #1446#1449
dima-starosud wants to merge 1 commit into
hsutter:mainfrom
dima-starosud:fix/deferred-init-narrowing

Conversation

@dima-starosud

Copy link
Copy Markdown

Fix deferred init narrowing #1446 by keeping brace-init in caller context.

Use construct_from(lambda) so constexpr initializers are not lost across a call boundary, matching immediate initialization behavior. Add regression tests for literals (negative too), constexpr, aggregates. Update snapshots affected by the change.

…ler context.

Use construct_from(lambda) so constexpr initializers are not lost across a call boundary, matching immediate initialization behavior.
Add regression tests for literals (negative too), constexpr, aggregates.
Update snapshots affected by the change.
@dima-starosud dima-starosud changed the title Fix deferred init narrowing #1446 Draft: Fix deferred init narrowing #1446 Jul 15, 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.

1 participant