There is currently a weird diagnostic in clang when a constructor doesn't fully initialize an object:
class Foo {
public:
int a;
constexpr Foo(){}
};
constexpr Foo F;
https://godbolt.org/z/5WdT8d4GE
The diagnostics for this example are a little weird. First we note that the subobject is of type 'int' for some reason and then we actually note where the subobject was declared.
I think mentioning the subobject name instead of the type in the original diagnostic would make much more sense.
There is currently a weird diagnostic in clang when a constructor doesn't fully initialize an object:
https://godbolt.org/z/5WdT8d4GE
The diagnostics for this example are a little weird. First we note that the subobject is of type 'int' for some reason and then we actually note where the subobject was declared.
I think mentioning the subobject name instead of the type in the original diagnostic would make much more sense.