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++/27775] incorrect "ambiguous" error message with multiple inheritance and nested class.


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

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-01-28 20:04:05 UTC ---
Also confirmed with GCC 4.7 rev 180166.

Clang 3.0 also reject this, so I am not sure whether is actually valid, but the
repeated messages are suspicious.

/tmp/webcompile/_9463_0.cc:10:14: error: member 'B' found in multiple base
classes of different types
    void foo(B b);
             ^
/tmp/webcompile/_9463_0.cc:3:12: note: member found by ambiguous name lookup
    struct B
           ^
/tmp/webcompile/_9463_0.cc:3:12: note: member found by ambiguous name lookup
/tmp/webcompile/_9463_0.cc:11:14: error: member 'B' found in multiple base
classes of different types
    void bar(B* pb);
             ^
/tmp/webcompile/_9463_0.cc:3:12: note: member found by ambiguous name lookup
    struct B
           ^
/tmp/webcompile/_9463_0.cc:3:12: note: member found by ambiguous name lookup
2 errors generated.


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