This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51613] [4.4/4.5/4.6/4.7 Regression] Ambiguous function template instantiations as template argument are not rejected
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jan 2012 16:47:05 +0000
- Subject: [Bug c++/51613] [4.4/4.5/4.6/4.7 Regression] Ambiguous function template instantiations as template argument are not rejected
- Auto-submitted: auto-generated
- References: <bug-51613-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51613
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-11 16:47:05 UTC ---
Author: jason
Date: Wed Jan 11 16:46:57 2012
New Revision: 183099
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183099
Log:
PR c++/51613
* pt.c (resolve_overloaded_unification): Compare types with
same_type_p, not decls_match.
Added:
trunk/gcc/testsuite/g++.dg/template/explicit-args5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog