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