This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40793] New: "Error: no matching function for call to XYZ" doesn't display function-template-arguments
- From: "jonathan dot sd24 at yahoo dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2009 22:09:02 -0000
- Subject: [Bug c++/40793] New: "Error: no matching function for call to XYZ" doesn't display function-template-arguments
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When a function-templates gets wrong arguments there's an error "no matching
function for call to result fun(args)". But the template-arguments aren't
displayed. So it takes hours to search the reason for this error in some cases.
The output should look like:
"no matching function for call to result fun<templatearg1, templatearg2>(args)
[with templatearg1 = x, templatearg2 = y]"
It's not version-specific (tested with 4.3 and 4.5)
--
Summary: "Error: no matching function for call to XYZ" doesn't
display function-template-arguments
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jonathan dot sd24 at yahoo dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793