From: John McCall Date: Tue, 12 Jan 2010 01:09:12 +0000 (+0000) Subject: Chris thinks these diagnostics are better now. :) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4248491ce435bf6c96dcd79149863f4c7e9cabfa;p=clang Chris thinks these diagnostics are better now. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93216 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/conditional-expr.cpp b/test/SemaCXX/conditional-expr.cpp index 8eaff784da..b71133bfee 100644 --- a/test/SemaCXX/conditional-expr.cpp +++ b/test/SemaCXX/conditional-expr.cpp @@ -128,7 +128,6 @@ void test() // "the type [it] woud have if E2 were converted to an rvalue" vfn pfn = i1 ? F() : test; pfn = i1 ? test : F(); - // these are ambiguous - better messages would be nice (void)(i1 ? A() : B()); // expected-error {{conversion from 'struct B' to 'struct A' is ambiguous}} (void)(i1 ? B() : A()); // expected-error {{conversion from 'struct B' to 'struct A' is ambiguous}} (void)(i1 ? 1 : Ambig()); // expected-error {{conversion from 'struct Ambig' to 'int' is ambiguous}}