]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/12266 (incorrect instantiation of unneeded template during overload resolution)
authorMark Mitchell <mark@codesourcery.com>
Wed, 17 Sep 2003 23:42:55 +0000 (23:42 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 17 Sep 2003 23:42:55 +0000 (23:42 +0000)
commit8458320833c8fbfb61d9261c411ce072461b639b
tree14040f001616060e51ea3ed9d68ba773cbc87412
parent47aa0df47504bd7a24c0e5e3110e927233e4a96d
re PR c++/12266 (incorrect instantiation of unneeded template during overload resolution)

PR c++/12266
* cp-tree.h (tsubst_flags_t): Add tf_conv.
* class.c (standard_conversion): Pass tf_conv to
instantiate_type.
(resolve_address_of_overloaded_function): Do not call mark_used
when just checking conversions.

PR c++/12266
* g++.dg/overload/template1.C: New test.

From-SVN: r71483
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/template1.C [new file with mode: 0644]