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

--- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-04-22 
10:38:05 UTC ---
(In reply to comment #8)
> Printing int[] or int[size_t] would be confusing too. 

More confusing than int[(((sizetype)<anonymous>) + 1)] ?

What about?

t7881.cc: In function ‘void g()’:
t7881.cc:6:10: error: no matching function for call to ‘f(int
[{variable-length}])’
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 is not a valid template
argument

Reply via email to