This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27775] incorrect "ambiguous" error message with multiple inheritance and nested class.
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 Jan 2012 20:04:05 +0000
- Subject: [Bug c++/27775] incorrect "ambiguous" error message with multiple inheritance and nested class.
- Auto-submitted: auto-generated
- References: <bug-27775-4@http.gcc.gnu.org/bugzilla/>
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.