re PR c++/11962 (ICE in type_dependent_expression on omitted second operand to ?...
commit18fd68a8b39900352967c54496fc1b394e7c48f2
authorMark Mitchell <mark@codesourcery.com>
Wed, 22 Oct 2003 02:08:47 +0000 (22 02:08 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 22 Oct 2003 02:08:47 +0000 (22 02:08 +0000)
tree43df86f21401b1fb9baf02d37d1b647fbbf75cc7
parent4f52529432143a89cbbf6344de2758b9a7d443f2
re PR c++/11962 (ICE in type_dependent_expression on omitted second operand to ?: in template argument expression)

PR c++/11962
* typeck.c (build_x_conditional_expr): Handle missing middle
operands in templates.
* mangle.c (write_expression): Issue errors about attempts to
mangle a non-existant middle operator to the ?: operator.

PR c++/11962
* g++.dg/template/cond2.C: New test.

From-SVN: r72785
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/cond2.C [new file with mode: 0644]