This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35758] [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2008 11:11:02 -0000
- Subject: [Bug c++/35758] [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates
- References: <bug-35758-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jakub at gcc dot gnu dot org 2008-03-31 11:11 -------
I think this shows that "vector_size" attribute can't be a late template
attribute whenever processing_template_decl, it can be only a late template
attribute if the decl is actually type or value dependent.
So I believe we need to remove the vector_size special case from
is_late_template_attribute, but then either something like the
http://gcc.gnu.org/ml/gcc-patches/2008-01/msg01020.html (second patch)
hack to reconstruct the types, or use a langhook in
handle_vector_size_attribute
for reconstruct_complex_type (defaulting to tree.c reconstruct_complex_type
everywhere but in C++).
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35758