Issue |
147582
|
Summary |
clang diagnostic "missing-designated-field-initializers" shouldn't fire for default constructed types
|
Labels |
clang
|
Assignees |
|
Reporter |
DanielJump
|
https://godbo.lt/z/6a9hvzb7j
I would only expect this warning to fire for types that don't have an explicit initializer or default constructor.
`struct T
{
std::string a;
std::string b;
};
int main(int, char**)
{
T t { .a = "hello" };
return 0;
}
`
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs