[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-09-29 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC|gcc-bugs at gcc dot gnu.org | ---

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-09-29 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #14 from Paolo Carlini paolo.carlini at oracle dot com 2011-09-29 10:45:40 UTC --- Never mind, I don't think it's the same, but 39813 is also pretty weird, why error.c sees the member template as a friend it's a mystery to me...

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-09-29 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #15 from Manuel López-Ibáñez manu at gcc dot gnu.org 2011-09-29 12:13:17 UTC --- (In reply to comment #14) Never mind, I don't think it's the same, but 39813 is also pretty weird, why error.c sees the member template as a friend

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-09-29 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #16 from Paolo Carlini paolo.carlini at oracle dot com 2011-09-29 12:20:51 UTC --- Thanks. Now in mainline we say this: 40793.C: In function ‘void f()’: 40793.C:5:31: error: no matching function for call to ‘staticPrint()’

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-09-29 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #17 from Manuel López-Ibáñez manu at gcc dot gnu.org 2011-09-29 14:35:14 UTC --- (In reply to comment #16) Thanks. Now in mainline we say this: 40793.C: In function ‘void f()’: 40793.C:5:31: error: no matching function for call

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-09-29 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-03-23 Thread jonathan.sd24 at yahoo dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #11 from Jonathan Schmidt-Dominé jonathan.sd24 at yahoo dot de 2011-03-23 16:29:31 UTC --- Couldn't this patch be accepted? It looks very nice…

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2011-03-23 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #12 from Manuel López-Ibáñez manu at gcc dot gnu.org 2011-03-23 17:17:37 UTC --- (In reply to comment #11) Couldn't this patch be accepted? It looks very nice… Unfortunately, I don't have enough free time to test this patch and

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2010-11-30 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #9 from Andrew Pinski pinskia at gcc dot gnu.org 2010-11-30 23:52:05 UTC --- So with the example in comment #5, we get: t.cc: In function ‘void f()’: t.cc:5:31: error: no matching function for call to ‘staticPrint()’ t.cc:2:18: note:

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2010-11-30 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793 --- Comment #10 from Manuel López-Ibáñez manu at gcc dot gnu.org 2010-12-01 00:13:52 UTC --- (In reply to comment #9) So with the example in comment #5, we get: t.cc: In function ‘void f()’: t.cc:5:31: error: no matching function for call to

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2010-07-01 Thread m-matti-a dot lehtonen at iki dot fi
--- Comment #6 from m-matti-a dot lehtonen at iki dot fi 2010-07-01 08:58 --- I have spend recently many, Many hours with heavily template based code (using CGAL - http://www.cgal.org/) until I figured, why my code failed. Telling input types and candidate list of all mismatched

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2010-07-01 Thread manu at gcc dot gnu dot org
--- Comment #7 from manu at gcc dot gnu dot org 2010-07-01 21:31 --- With the patch below, we print this: pr40793.C:5:31: error: no matching function for call to ‘staticPrintdouble, text()’ pr40793.C:2:18: note: candidate is: templateclass T, T t void staticPrint() but I am not sure

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2010-07-01 Thread bangerth at gmail dot com
--- Comment #8 from bangerth at gmail dot com 2010-07-01 21:38 --- I think that would already be an improvement. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2009-08-25 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-08-25 14:25 --- Jonathan, the point everyone is trying to make is this: since no function or function template matches the call, all the compiler could possibly do is list all declarations of the name staticPrint() or none, but of

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2009-07-29 Thread jonathan dot sd24 at yahoo dot de
--- Comment #4 from jonathan dot sd24 at yahoo dot de 2009-07-29 21:05 --- Template-Parameters can be results of long calculations or typedefs with several layers of indirection. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2009-07-21 Thread jwakely dot gcc at gmail dot com
--- Comment #3 from jwakely dot gcc at gmail dot com 2009-07-21 17:45 --- It tells you the location of the call. If you've specified the template arguments at that location then you can see what they are, I don't see how putting them in the diagnostic will save hours if you could find

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2009-07-18 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-07-18 08:59 --- But it doens't know it looks for a template function. It should display the candidate list from which you can see what happens. This is how name-lookup and overload resolution works... -- rguenth at gcc dot

[Bug c++/40793] Error: no matching function for call to XYZ doesn't display function-template-arguments

2009-07-18 Thread jonathan dot sd24 at yahoo dot de
--- Comment #2 from jonathan dot sd24 at yahoo dot de 2009-07-18 10:02 --- When I explicitly specify the template-arguments g++ should know it. And there was no candidate-list. For example: templatetypename T, T t void staticPrint() { cout t endl; } Now I call: staticPrintdouble,