https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86205
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Jan 18 03:58:22 2019 New Revision: 268058 URL: https://gcc.gnu.org/viewcvs?rev=268058&root=gcc&view=rev Log: PR c++/86205 - ICE with ?: of throw and template-id. My patch for 64372 removed a bogus lvalue-rvalue conversion for one arm of a ?: expression where the other arm is a throw. But we still need to require any overload to be resolved, even though we aren't getting that from decay_conversion anymore. * pt.c (resolve_nondeduced_context_or_error): Split out from... * typeck.c (decay_conversion): ...here. * call.c (build_conditional_expr_1): Use it. Added: trunk/gcc/testsuite/g++.dg/cpp0x/cond2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/pt.c trunk/gcc/cp/typeck.c