This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51613] [4.4/4.5/4.6/4.7 Regression] Ambiguous function template instantiations as template argument are not rejected


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]