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++/57327] 'derived' is an ambiguous base class of 'base' diagnostic is backwards


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>â

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