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++/42322] New: 'foo is not a template function' error message should include signature of function


Currently, when you get the error 'foo is not a template function' (if for
example, you try to write a template specialization of a function foo when foo
is not actually templated) you have no way of determining what definition of
foo the compiler might have found without pouring through your header files
with grep. If GCC reported the signature for foo, the user could immediately
know what alternate version of foo is being pulled in instead of the templated
one that they want (maybe they included the wrong header, or there's a
namespacing issue).

I imagine this should be low hanging fruit, because the compiler already has to
know the signature to issue the error.


-- 
           Summary: 'foo is not a template function' error message should
                    include signature of function
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joseph dot h dot garvin at gmail dot com


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


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