Специализни шаблонца! (udpn) wrote,
Специализни шаблонца!
udpn

VS2013 Update2 FTW

template <class> struct Z {};
struct B : Z
<int> {};
struct C : B, Z<int> {};
void f(Z<int> 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:

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments