This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57327] 'derived' is an ambiguous base class of 'base' diagnostic is backwards
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 May 2013 10:41:32 +0000
- Subject: [Bug c++/57327] 'derived' is an ambiguous base class of 'base' diagnostic is backwards
- Auto-submitted: auto-generated
- References: <bug-57327-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57327
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|'derived' is an ambiguous |'derived' is an ambiguous
|base class of 'base' |base class of 'base'
|diagnostic is bacwards |diagnostic is backwards
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Thanks, Paolo. I've just realised the first line of the test case is missing,
sorry.
Here's a simpler form anyway:
template<class T>
struct A {};
template<class T>
void f(A<T>&) {}
struct B : A<long> {};
struct C : A<char> {};
struct D : B, C {};
int main()
{
D d;
f(d);
}
t.cc:16:6: note: âDâ is an ambiguous base class of âA<T>â