[Bug c++/58845] [4.8/4.9 Regression] Operator || and && broken for vectors

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 4 11:27:00 GMT 2013


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

--- Comment #10 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #9)
> Thus no short-circuiting for vector && or ||.

Indeed. Though we already deviated from OpenCL for ?: and as mentioned in my
patch we could do short-circuit for the mixed scalar&&vector if we wanted to
(though we probably don't).

> No short-circuiting but preserving the sequence point (if there is one)

Ah, I'd completely missed that we might want a sequence point there, thanks, it
makes sense.



More information about the Gcc-bugs mailing list