This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42322] New: 'foo is not a template function' error message should include signature of function
- From: "joseph dot h dot garvin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2009 15:53:33 -0000
- Subject: [Bug c++/42322] New: 'foo is not a template function' error message should include signature of function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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