On Tue, 22 Dec 2015, Martin Sebor wrote:

The attached patch adds handling of dependent arguments to
attribute aligned and attribute vector_size, fixing c++/58109
and 69022 - attribute vector_size ignored with dependent bytes.

In the longer term, Gaby used to suggest that internally we should represent the vector_size attribute as some kind of template __vector<scalar,size> (half-way between a template class and a template alias). The goal would be to avoid duplicating all the logic from templates into attributes.

Of course that's much more work (even assuming that there isn't some big road-block, which there might be), and a little bit more code duplication as in your patch seems appropriate at this stage.

--
Marc Glisse

Reply via email to