Livejournal
Log in
Post
Friends
My journal
udpn
VS2013 Update2 FTW
Jun 06, 2014 15:35
template struct Z {};
struct B : Z {};
struct C : B, Z {};
void f(Z const &) {}
int main() { f(C()); }
Clang
: ambiguous conversion from derived class 'C' to base class 'Z':
GCC
: ‘Z’ is an ambiguous base of ‘C’
Visual Studio 2013:
Leave a comment
Read comments 6
Previous post
Next post
Up