------- 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