This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/55922] brace initializing parent cause bogus virtual base constructor calls


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55922

--- Comment #1 from nicolas.cavallari at lri dot fr 2013-01-09 17:42:47 UTC ---
Created attachment 29129
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29129
same source with more outputs.

Example output of what i have on my system with this attachment :

Base ctor is called at 0x7fffb7eeb474
Base ctor is called at 0x7fffb7eeb468
A1::Base is at 0x7fffb7eeb468
B1::Base is at 0x7fffb7eeb468
Base ctor is called at 0x7fffb7eeb470
A2::Base is at 0x7fffb7eeb470
C::Base is at 0x7fffb7eeb474
2 2 3


Standard output should read "1 2 3".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]