Skip to content

fix: maybe uninitialized warning on GCC 16.2.1 - #741

Merged
kris-jusiak merged 1 commit into
boost-ext:masterfrom
dornbirndevelops:patch-1
Oct 21, 2026
Merged

kris-jusiak merged 1 commit into
boost-ext:masterfrom
dornbirndevelops:patch-1

Conversation

@dornbirndevelops

Copy link
Copy Markdown
Contributor

Problem:

  • sm_impl's constructor calls try_get_without_instantiating while it is still building transitions_. That function is a non-static const member, so the call passes this while *this is still uninitialized.

Solution:

  • try_get_without_instantiating does not use this. make it a static function instead.

Issue: https://godbolt.org/z/K63G9sqPP

Reviewers:
@kris-jusiak

@kris-jusiak
kris-jusiak merged commit 498d7b6 into boost-ext:master Oct 21, 2026
7 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.

2 participants