boostorg/optional

-Wuninitialized warning on current gcc

roe85 opened this issue · 1 comments

roe85 commented

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?

This should be fixed by e31cf6f