[Bug c++/108460] New: -Wmissing-braces with ctad
tim at klingt dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 19 05:26:08 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108460
Bug ID: 108460
Summary: -Wmissing-braces with ctad
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tim at klingt dot org
Target Milestone: ---
consider this snippet, that uses class template argument deduction for arrays
```
#include <array>
std::array a {"a", "b", "c"}; // ctad, but emits -Wmissing-braces
std::array b {{"a", "b", "c"}}; // does not build
```
this makes me wonder if `-Wmissing-braces` should fire in case `a`?
More information about the Gcc-bugs
mailing list