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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 
00:30:07 UTC ---
t788.cc: In function ‘void g()’:
t788.cc:6:10: error: no matching function for call to ‘f(int
[(((sizetype)<anonymous>) + 1)])’
t788.cc:6:10: note: candidate is:
t788.cc:2:28: note: template<int N> void f(int (&)[N])
t788.cc:2:28: note:   template argument deduction/substitution failed:
t788.cc:6:10: note:   variable-sized array type ‘int [(((sizetype)<anonymous>)
+ 1)]’ is not a valid template argument

And
t7881.cc: In function ‘void g()’:
t7881.cc:6:10: error: no matching function for call to ‘f(int
[(((sizetype)<anonymous>) + 1)])’
t7881.cc:6:10: note: candidate is:
t7881.cc:2:23: note: template<int N> void f(int (&)[N])
t7881.cc:2:23: note:   template argument deduction/substitution failed:
t7881.cc:6:10: note:   variable-sized array type ‘int [(((sizetype)<anonymous>)
+ 1)]’ is not a valid template argument

Reply via email to