This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20311] New: poor diagnostic
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2005 07:11:30 -0000
- Subject: [Bug c++/20311] New: poor diagnostic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In :
template<typename T>
void foo(T) {};
template<typename T, typename P>
void bar(T, P) {}
int main() {
bar(0, foo);
}
you get:
~/ootbc/members/src$ g++ foo.cc
foo.cc: In function `int main()':
foo.cc:7: error: no matching function for call to `bar(int, <unknown type>)'
The second argument is not "<unknown type>"; the compiler knows it's a template
and should say so.
Ivan
--
Summary: poor diagnostic
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20311