https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108667
--- Comment #4 from Alvaro Begue ---
Original code:
#include
#include
#include
template
class Signal {
public:
using Slot = std::function;
using FoldingFunction = std::function;
Signal(FoldingFunction fold, ReturnType initial)
:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108667
--- Comment #2 from Alvaro Begue ---
Yes, this is a reduction of real code. I'm writing a signal class and I wrote a
small test for it. It worked fine when compiling unoptimized, but the optimized
version gave me this odd warning.
Would it be i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108667
Bug ID: 108667
Summary: Spurious "maybe used uninitialized
[-Wmaybe-uninitialized]" warning
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal