From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17923 invoked by alias); 29 Mar 2008 18:45:12 -0000 Received: (qmail 17539 invoked by uid 48); 29 Mar 2008 18:44:30 -0000 Date: Sat, 29 Mar 2008 18:45:00 -0000 Subject: [Bug c++/35758] New: [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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/msg02382.txt.bz2 The following testcase used to work in 4.1.1 but no longer does: #define vector __attribute__((vector_size(16) )) template vector signed int MyFunction(vector float value) {} template void MyFunction(float ){} int main() { vector float myVector; float myFloat; MyFunction<1>(myVector); MyFunction<1>(myFloat); } ---- CUT ---- We get: vector14.C: In function ‘int main()’: vector14.C:12: error: no matching function for call to ‘MyFunction(float __vector__&)’ vector14.C:13: error: call of overloaded ‘MyFunction(float&)’ is ambiguous vector14.C:3: note: candidates are: int MyFunction(float) [with int INDEX = 1] vector14.C:6: note: void MyFunction(float) [with int = 1] -- Summary: [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: blocker Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35758