https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104142
Mike Hommey <mh+gcc at glandium dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mh+gcc at glandium dot org
--- Comment #6 from Mike Hommey <mh+gcc at glandium dot org> ---
There's a different warning that interestingly only happens on 11.2 and 11.3
(not 11.1 or earlier versions), that is fixed by the patch in this bug:
```
struct Foo {
explicit constexpr Foo(char) {}
};
const Foo foo[] = {};
```
```
<source>: In function 'void __static_initialization_and_destruction_0(int,
int)':
<source>:5:11: error: statement has no effect [-Werror=unused-value]
5 | const Foo foo[] = {};
| ^~~
```