[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};

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

2020-12-26 Thread maic23 at live dot de via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: maic23 at live dot de Target Milestone: --- When using std::array in C++17 mode, -Wunused-variable behaves inconsistent: $ cat /tmp/a.cpp #include static constexpr std::array bay{9}; static constexpr std

[Bug c++/90300] New: "control reaches end of non-void function" warning despite exhaustive switch for enum class

2019-05-01 Thread maic23 at live dot de
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: maic23 at live dot de Target Milestone: --- GCC can determine if a switch statement on an enum class does not cover all possible cases. However, e

[Bug c++/88136] -Wdeprecated-copy is draconian and shouldn't be in -Wall

2019-04-17 Thread maic23 at live dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88136 maic changed: What|Removed |Added CC||maic23 at live dot de --- Comment #8 from maic