[Bug c++/98450] Inconsistent Wunused-variable warning for std::array

2023-04-11 Thread gnu.ojxq8 at dralias dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98450 maic changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/98450] Inconsistent Wunused-variable warning for std::array

2021-12-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98450 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to fail|

[Bug c++/98450] Inconsistent Wunused-variable warning for std::array

2020-12-28 Thread maic23 at live dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98450 --- Comment #1 from maic --- As a temporary workaround to suppress the erroneous warning, `auto` can be used: $ cat /tmp/c.cpp #include static constexpr auto bay = std::array{9}; static constexpr std::array bax{9};