https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Pedro Alves from comment #9)
> I had tried that last night, but unfortunately it couldn't get it to work,
> because the warning triggers in A, not optional<A>.

Bah! When we want the warning location to be in our headers it's in user code
(like this case) and when we want it in user code it's in our headers (and so
suppressed, like Bug 58876).

Sadly I have no better suggestion than -Wno-error=maybe-uninitialized

Reply via email to