This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16232] Poor diagnostic
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jan 2012 01:34:02 +0000
- Subject: [Bug c++/16232] Poor diagnostic
- Auto-submitted: auto-generated
- References: <bug-16232-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16232
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-20 01:34:02 UTC ---
t.cc: In instantiation of âvoid B<V>::Bar(V*) [with V = A<bool>]â:
t.cc:12:13: required from here
t.cc:6:9: error: no matching function for call to âA<bool>::Foo()â
t.cc:6:9: note: candidate is:
t.cc:2:31: note: template<class U> void A::Foo() [with U = U; T = bool]
t.cc:2:31: note: template argument deduction/substitution failed:
t.cc:6:9: note: couldn't deduce template parameter âUâ
So fixed.