http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-04-01 17:05:35 UTC --- The stride needs to be set from the source; it currently is taken from y (which is an empty type, hence the 0 for sm).