public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/68903] missing default initialization of member when combined with virtual inheritance [not found] <bug-68903-4@http.gcc.gnu.org/bugzilla/> @ 2020-03-12 13:03 ` spam at trzeci dot pl 2021-08-10 16:36 ` pinskia at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 4+ messages in thread From: spam at trzeci dot pl @ 2020-03-12 13:03 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68903 --- Comment #2 from trzeci <spam at trzeci dot pl> --- Simpler test: struct A { int a = 3; }; struct B : public A {}; struct C : public virtual B { int c = a; }; #include <iostream> int main() { C c; std::cout << c.a << " " << c.c << std::endl; return 0; } outputs: 3 0 instead of: 3 3 tested on 8.4.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/68903] missing default initialization of member when combined with virtual inheritance [not found] <bug-68903-4@http.gcc.gnu.org/bugzilla/> 2020-03-12 13:03 ` [Bug c++/68903] missing default initialization of member when combined with virtual inheritance spam at trzeci dot pl @ 2021-08-10 16:36 ` pinskia at gcc dot gnu.org 2021-12-09 9:10 ` marxin at gcc dot gnu.org 2021-12-09 16:49 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-10 16:36 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68903 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Seems fixed on trunk; maybe by the fix for PR 98744. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/68903] missing default initialization of member when combined with virtual inheritance [not found] <bug-68903-4@http.gcc.gnu.org/bugzilla/> 2020-03-12 13:03 ` [Bug c++/68903] missing default initialization of member when combined with virtual inheritance spam at trzeci dot pl 2021-08-10 16:36 ` pinskia at gcc dot gnu.org @ 2021-12-09 9:10 ` marxin at gcc dot gnu.org 2021-12-09 16:49 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 4+ messages in thread From: marxin at gcc dot gnu.org @ 2021-12-09 9:10 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68903 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |12.0 CC| |marxin at gcc dot gnu.org, | |ppalka at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=80431 --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Fixed with r12-1697-gde31f5445b12fd9a. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/68903] missing default initialization of member when combined with virtual inheritance [not found] <bug-68903-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2021-12-09 9:10 ` marxin at gcc dot gnu.org @ 2021-12-09 16:49 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-09 16:49 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68903 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |12.0 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed. The patch is explictly about this and virtual bases usage in NSDMI which is happening in both of these testcases. So closing as fixed. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-09 16:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-68903-4@http.gcc.gnu.org/bugzilla/> 2020-03-12 13:03 ` [Bug c++/68903] missing default initialization of member when combined with virtual inheritance spam at trzeci dot pl 2021-08-10 16:36 ` pinskia at gcc dot gnu.org 2021-12-09 9:10 ` marxin at gcc dot gnu.org 2021-12-09 16:49 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).