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

-Wuninitialized warning on current gcc #108

Open
roe85 opened this issue Jan 9, 2023 · 1 comment
Open

-Wuninitialized warning on current gcc #108

roe85 opened this issue Jan 9, 2023 · 1 comment

Comments

@roe85
Copy link

roe85 commented Jan 9, 2023

It seems that the -Wuninitalized warning which supposedly has been fixed is still active under certain conditions even on gcc trunk:
godbolt

#include <boost/optional.hpp>

boost::optional<int> bla()
{
    return {};
}

bool blub()
{
    return bla().has_value();
}

Is this an issue of gcc or boost::optional?

@roe85 roe85 changed the title -Wmaybe-uninitialized warning on current gcc -Wuninitialized warning on current gcc Jan 9, 2023
@akrzemi1
Copy link
Member

This should be fixed by e31cf6f

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

No branches or pull requests

2 participants