We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider this simple testcase:
extern "C" { int printf(const char *format, ...); };
struct Test { Test() : i(10) {} Test(int i) : i(i) {} int i; private: int j; };
int main() { Test partial[3] = { 1 }; printf("%d %d %d\n", partial[0].i, partial[1].i, partial[2].i);
Test empty[3] = {}; printf("%d %d %d\n", empty[0].i, empty[1].i, empty[2].i);
}
This is a regression; as of r129729 it worked. The program should print "1 10 10" "10 10 10". It currently prints "1 10 10" "0 0 0".
If you shrink the array down to 2 members, the bug goes away. If you remove private members, the bug goes away.
The text was updated successfully, but these errors were encountered:
Clang r129896 and r129933 made changes in this area.
Sorry, something went wrong.
cloned to rdar://problem/9347552
FIxed at r130421, thanks for the report!
Merge pull request llvm#10173 from benlangmuir/cherry-pick-144790713-6.1
b3bb7aa
Remove extraneous dependencies from libclangDependencyScanning to fix regression in clangd size
No branches or pull requests
Extended Description
Consider this simple testcase:
extern "C" { int printf(const char *format, ...); };
struct Test {
Test() : i(10) {}
Test(int i) : i(i) {}
int i;
private:
int j;
};
int main() {
Test partial[3] = { 1 };
printf("%d %d %d\n", partial[0].i, partial[1].i, partial[2].i);
}
This is a regression; as of r129729 it worked. The program should print "1 10 10" "10 10 10". It currently prints "1 10 10" "0 0 0".
If you shrink the array down to 2 members, the bug goes away. If you remove private members, the bug goes away.
The text was updated successfully, but these errors were encountered: