https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70290
Bug ID: 70290 Summary: -mavx512vl breaks parsing of C++ vector comparison Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: glisse at gcc dot gnu.org Target Milestone: --- Target: x86_64-*-* typedef int vec __attribute__((vector_size(32))); vec f(vec x,vec y){return (x<y)?1:0;} Using g++ with no flag or -mavx2 it compiles fine, but with -mavx512vl it gives the strange: x.c: In function 'vec f(vec, vec)': x.c:2:32: error: inferred scalar type 'int' is not an integer or floating point type of the same size as 'int' vec f(vec x,vec y){return (x<y)?1:0;} ~~~~~^~~~