[PATCH] D16552: Let clang not error out on `const std::vector<int> empty_vec; ` with libstdc++5.3.
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 8 11:56:31 PST 2016
thakis added a comment.
Will do, thanks! In "If the implicit default constructor initializes all subobjects, no initializer should be required", is "initializes all subobjects meant recursively? I.e. is this ok according to that language?
`
struct Inner {
Inner() = default;
int i; // not initialized, but Inner has a default ctor
};
struct S {
Inner inner;
};
const S s;
`
http://reviews.llvm.org/D16552
More information about the cfe-commits
mailing list