re PR c++/32019 (Conditional operator ?: and ambiguous convertions)
authorJason Merrill <jason@redhat.com>
Fri, 9 May 2014 18:15:57 +0000 (14:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 9 May 2014 18:15:57 +0000 (14:15 -0400)
commit5f901ccf18953b699bd290a4a169e2b7c7aa870a
treeab9c517435ddf2b9110bfd116ed64822ab96ee2e
parentbb8b1f696ecc30435b210cbcb4d0c575a3e81df1
re PR c++/32019 (Conditional operator ?: and ambiguous convertions)

PR c++/32019
* call.c (build_conditional_expr_1): Improve ambiguity diagnostic.

PR c++/54348
* call.c (build_conditional_expr_1): If overload resolution finds
no match, just say "different types".

From-SVN: r210282
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp0x/explicit3.C
gcc/testsuite/g++.dg/expr/cond10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/expr/cond11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/expr/cond13.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash41.C