http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53784
Bug #: 53784 Summary: Scalar vector binary operation - error with -std=c9x/c1x Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: d...@nimrod.no Test code: ---------- typedef float v8sf __attribute__ ((vector_size (4*8))); v8sf add_scalar(v8sf v, float s) { return v + s; } ---------- If any non-GNU language standard is chosen (e.g. gcc -std=c99 -mavx -S test.c), the compilation fails with the following error: error: conversion of scalar to vector involves truncation As far as I can tell, there should not be any truncation involved here. Adding -ffast-math makes gcc accept the code.