Re: Gcc emit wrong symbols in multiple inheritance case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Zitat von Bo Yang <techrazy.yang@xxxxxxxxx>:

class DLL Child :       public  ChildA,
                public  ChildB {

Independent of any GCC bug, non-virtual diamond inheritance is considered is evil. Most likely you really want:

class DLL Child :
   public virtual ChildA,
   public virtual ChildB {

Regards

Martin

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux