https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123350

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-12-30
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=13590
         Depends on|                            |27775
             Status|UNCONFIRMED                 |NEW

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So looking into this further. GCC, EDG and MSVC are all wrong due to
DR39/DR306.
clang implemented CWG306 part of the defect report:
https://github.com/llvm/llvm-project/commit/7c327db3ef73d771bc022d0723672fc356dc9017
which allowed this too.

Note clang does not implement the full DR39 rules though.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27775
[Bug 27775] incorrect "ambiguous" error message with multiple inheritance and
nested class.

Reply via email to