This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70430] Incorrect result for logical "and" operation with mixed vector and scalar


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70430

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Mar 31 08:49:09 2016
New Revision: 234611

URL: https://gcc.gnu.org/viewcvs?rev=234611&root=gcc&view=rev
Log:
2016-03-31  Richard Biener  <rguenther@suse.de>

        PR c++/70430
        * typeck.c (cp_build_binary_op): Fix operand order of vector
        conditional in truth op handling.

        * g++.dg/ext/vector30.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/ext/vector30.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]