Author: rjmccall
Date: Mon Jan 11 19:09:12 2010
New Revision: 93216
URL: http://llvm.org/viewvc/llvm-project?rev=93216&view=rev
Log:
Chris thinks these diagnostics are better now. :)
Modified:
cfe/trunk/test/SemaCXX/conditional-expr.cpp
Modified: cfe/trunk/test/SemaCXX/conditional-expr.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/conditional-expr.cpp?rev=93216&r1=93215&r2=93216&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/conditional-expr.cpp (original)
+++ cfe/trunk/test/SemaCXX/conditional-expr.cpp Mon Jan 11 19:09:12 2010
@@ -128,7 +128,6 @@
// "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}}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits