]> granicus.if.org Git - clang/commitdiff
Chris thinks these diagnostics are better now. :)
authorJohn McCall <rjmccall@apple.com>
Tue, 12 Jan 2010 01:09:12 +0000 (01:09 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 12 Jan 2010 01:09:12 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93216 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/conditional-expr.cpp

index 8eaff784da6930896276fd1c0fa308832db91262..b71133bfeec86ec9be15979d656c74a7db0cdb03 100644 (file)
@@ -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}}