From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26729 invoked by alias); 31 Mar 2008 11:11:45 -0000 Received: (qmail 25925 invoked by uid 48); 31 Mar 2008 11:11:02 -0000 Date: Mon, 31 Mar 2008 11:11:00 -0000 Message-ID: <20080331111102.25924.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/35758] [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg02534.txt.bz2 ------- 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