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++/58845] Operator || and && broken for vectors


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

--- Comment #22 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #21)
> One argument against the sequence point is that we don't have one for ?: .
> If we add one for ?: several testcases regress, so we have to make sure to
> only do the save_expr/compound_expr thing if there are side effects, or port
> some more fold-const optimizations to gimple (and update the testcases to
> check for the optimization in a later dump).

That seems like a fine reason not to diverge from the OpenCL semantics in this
case.


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