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)


Andrew Pinski wrote:

I will explain what happens here. First we mark the attribute as being expanded late so we have a type of float in the function agrument; then at overload time, we don't resolve the attribute. As shown by a different testcase in the bug report which I mention in this bug report, we should be resolving the attributes at overload time so I disagree with Jakub's patch.

That was my thinking too. Overload resolution requires instantiation of template arguments in the parameter types, and, for us, that includes late attributes.


--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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