OSDN Git Service

PR c++/11962
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Oct 2003 02:08:47 +0000 (02:08 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Oct 2003 02:08:47 +0000 (02:08 +0000)
commit716521b535c3d25a7b7fc67650ab24dfc419a56e
tree43df86f21401b1fb9baf02d37d1b647fbbf75cc7
parent54b271955eeafe3ddf5c7af6fb679a443de8bb9a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72785 138bc75d-0d04-0410-961f-82ee72b054a4
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]