[cfe-dev] Strange behaviour on virtual inheritance

Mikhail Maltsev via cfe-dev cfe-dev at lists.llvm.org
Tue Aug 20 09:42:08 PDT 2019


On 8/8/19 12:49 PM, Mustafa Kemal GILOR via cfe-dev wrote:

>
> But, if we change order of inheritance, the error disappears.
>
> struct qua  :  public virtual zxe,      // providing public foo access
>                      public bar<zxe>        // restricting foo access
> { };
>
> Is this a bug, or related to standard?  I've tried same example in GCC 9.1, 8.1,
> 4.9 and both versions are compiled just fine.
>

This is probably https://bugs.llvm.org/show_bug.cgi?id=28591


--
Regards,
  Mikhail Maltsev
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the cfe-dev mailing list