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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |11.2.0, 12.0
            Summary|Spurious                    |[11/12 Regression] Spurious
                   |maybe-uninitialized warning |maybe-uninitialized warning
                   |on std::array::size         |on std::array::size

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Declaring std::array::size() with attribute ((const)) avoids the warning so
that might be a solution.

Reply via email to