This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Fix vector_size handling in templates (PR c++/35758)


Jakub Jelinek wrote:
I'm afraid we have our hands seriously tied by where we accept the vector_size
attribute and what semantics it has.  As there is already quite a lot of
code using vector_size attribute in the wild, I'm afraid changing where we
allow it won't fly, so I don't see how we can easily avoid the complex type
reconstruction.

Yes, attribute syntax/parsing is horrible.


We really want attribute vector to work like a type-specifier, rather than a decl-specifier, so that we would apply it to the type early in grokdeclarator rather than waiting until cp_decl_attributes. I wonder how feasible that change would be.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]