------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-16 
16:02 -------
(In reply to comment #5)
> This could be fixed already...

It is not:
t.cc: In function ‘int main()’:
t.cc:15: error: invalid initialization of non-const reference of type ‘const 
int (&)[2][4]’ from a temporary 
of type ‘int [2][4]’
t.cc:2: error: in passing argument 1 of ‘void print1(const T (&)[N]) [with T = 
int [4], unsigned int N = 
2u]’
t.cc:16: error: invalid initialization of non-const reference of type ‘const 
int (&)[2][4]’ from a temporary 
of type ‘int [2][4]’
t.cc:7: error: in passing argument 1 of ‘void print2(const T (&)[N][M]) [with T 
= int, unsigned int N = 2u, 
unsigned int M = 4u]’

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5786

Reply via email to