2013-07-14 Marc Glisse <marc.glisse@inria.fr>
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 Jul 2013 08:36:47 +0000 (08:36 +0000)
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 Jul 2013 08:36:47 +0000 (08:36 +0000)
commit3dbad1a0ec5ca395c3c4b0353751b32a481918e7
tree9d42f5227429601994deb716a51f062f0728c539
parentbffcae34bdf0412048ac450875a05b850eee5083
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.

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