[Bug c++/11582] Odd error message with dynamically sized template arg printing

2021-08-23 Thread bangerth at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 Wolfgang Bangerth changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2021-08-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 --- Comment #12 from Andrew Pinski --- Since GCC 11 we produce: : In function 'void g()': :7:4: error: no matching function for call to 'f(int [])' 7 | f( buf ) ; | ~^~~ :3:28: note: candidate: 'template void f(int (&)[N])'

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2017-01-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 Martin Sebor changed: What|Removed |Added Priority|P2 |P3 CC|

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2013-04-22 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 --- Comment #10 from Gabriel Dos Reis 2013-04-23 03:45:56 UTC --- (In reply to comment #9) > (In reply to comment #8) > > Printing int[] or int[size_t] would be confusing too. > > More confusing than int[(((sizetype)) + 1)] ? > > What about?

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2013-04-22 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 --- Comment #9 from Manuel López-Ibáñez 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)) + 1)] ? What about? t7881.cc: In function ‘void g()’:

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2013-04-22 Thread gdr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 --- Comment #8 from Gabriel Dos Reis 2013-04-22 10:10:36 UTC --- (In reply to comment #7) > The '[(((sizetype)) + 1)]' is just awful. If we don't know the > actual type there, that is "int [size()]", then we should just print 'int []' > o

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2013-04-19 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Commen

[Bug c++/11582] Odd error message with dynamically sized template arg printing

2012-02-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 --- Comment #6 from Andrew Pinski 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)) + 1)])’ t788.cc:6:10: note: candidate is: t788.cc:2:28: note: template void