[Bug c++/42322] New: 'foo is not a template function' error message should include signature of function
joseph dot h dot garvin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 7 15:53:00 GMT 2009
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
More information about the Gcc-bugs
mailing list