call.c (build_conditional_expr_1): Handle the case with 1 vector and 2 scalars.
commit07298ffd6f7c2d2623272bba009a23750db12397
authorMarc Glisse <marc.glisse@inria.fr>
Sun, 14 Jul 2013 08:36:47 +0000 (14 10:36 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Sun, 14 Jul 2013 08:36:47 +0000 (14 08:36 +0000)
tree9d42f5227429601994deb716a51f062f0728c539
parent52d676b6c27f1c160c82251559606beec8089384
call.c (build_conditional_expr_1): Handle the case with 1 vector and 2 scalars.

2013-07-14  Marc Glisse  <marc.glisse@inria.fr>

gcc/cp/
* call.c (build_conditional_expr_1): Handle the case with 1 vector
and 2 scalars. Call save_expr before building a vector.
* typeck.c (cp_build_binary_op): Check complain before complaining.

gcc/testsuite/
* g++.dg/ext/vector19.C: Adapt.
* g++.dg/ext/vector23.C: New testcase.

From-SVN: r200947
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vector19.C
gcc/testsuite/g++.dg/ext/vector23.C [new file with mode: 0644]