Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async_promise_type possibly unitialized value #154

Merged

Conversation

jbaldwin
Copy link
Owner

@jbaldwin jbaldwin commented Oct 3, 2024

The std::variant for callback or future/promise with gcc-13 seems to be triggering an uninitialized value warning. We can tell it isn't uninitialized but the compiler seems to be thinking the 2nd type in the variant, which is the callback type, is unitialized when the promise type, 3rd type in the variant, is the one being initialized.

Closes #153

@jbaldwin jbaldwin self-assigned this Oct 3, 2024
@jbaldwin jbaldwin force-pushed the issue-153/gcc13-possibly-uninitialized-value-warning branch 7 times, most recently from e34fed2 to 3ffc4aa Compare October 3, 2024 21:06
The std::variant for callback or future/promise with gcc-13 seems to be
triggering an uninitialized value warning. We can tell it isn't
uninitialized but the compiler seems to be thinking the 2nd type in the
variant, which is the callback type, is unitialized _when_ the promise
type, 3rd type in the variant, is the one being initialized.

Closes #153
@jbaldwin jbaldwin force-pushed the issue-153/gcc13-possibly-uninitialized-value-warning branch from 3ffc4aa to d743b67 Compare October 3, 2024 21:12
@jbaldwin jbaldwin merged commit e96e050 into main Oct 3, 2024
6 checks passed
@jbaldwin jbaldwin deleted the issue-153/gcc13-possibly-uninitialized-value-warning branch October 3, 2024 21:17
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.

gcc13 possibly uninitialized value warning
1 participant