From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25965 invoked by alias); 30 Jan 2009 15:27:32 -0000 Received: (qmail 25552 invoked by uid 48); 30 Jan 2009 15:27:16 -0000 Date: Fri, 30 Jan 2009 15:27:00 -0000 Message-ID: <20090130152716.25551.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/38950] [4.3/4.4 regression] ICE: deducing function template arguments for array type. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bangerth at gmail dot com" 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: 2009-01/txt/msg03359.txt.bz2 ------- Comment #1 from bangerth at gmail dot com 2009-01-30 15:27 ------- Confirmed. This used to work in 4.1 where we got the following error (which does not earn the prize for the prettiest error message ever): g/x> /home/bangerth/bin/gcc-4.1.1/bin/c++ -c x.cc x.cc: In function 'int main()': x.cc:7: error: size of array has non-integral type 'T' x.cc:1: error: size of array has non-integral type 'T' x.cc:1: error: size of array has non-integral type 'T' x.cc:7: error: invalid initialization of reference of type 'unsigned int (&)[1]' from expression of type 'unsigned int [2]' x.cc:1: error: in passing argument 1 of 'void f(T (&)[N]) [with T = unsigned int, T N = ((T)2)]' x.cc: In function 'void f(T (&)[N]) [with T = unsigned int, T N = ((T)2)]': x.cc:7: instantiated from here x.cc:1: error: size of array has non-integral type 'T' -- bangerth at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-invalid-code Last reconfirmed|0000-00-00 00:00:00 |2009-01-30 15:27:16 date| | Summary|ICE: deducing function |[4.3/4.4 regression] ICE: |template arguments for array|deducing function template |type. |arguments for array type. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38950