| Issue |
83368
|
| Summary |
[Clang][C++20] CTAD on aggregates fails with designated initializers
|
| Labels |
c++20,
clang:frontend,
rejects-valid
|
| Assignees |
|
| Reporter |
duk-37
|
```cpp
template <int N>
struct A { int f1[N]; };
int main() {
A a1{ {1} }; // compiles fine
A a2{ .f1 = {1} }; // error: no viable constructor or deduction guide for deduction of template arguments of 'T'
}
```
MSVC errors here too, GCC works.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs