This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]