re PR c++/16174 (deducing top-level consts)
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 28 Jun 2004 11:07:23 +0000 (11:07 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 28 Jun 2004 11:07:23 +0000 (11:07 +0000)
commit644d195145f7e535d426494e1f6a8a68aa0cb7a8
tree394b2c49cada83d43d85f498c43b298287f0e424
parenta301e965cca8ec15a361fc5e3dd6886b9161a20c
re PR c++/16174 (deducing top-level consts)

cp:
PR C++/16174
* call.c (build_temp): Declare.
(check_constructor_callable): New.
(reference_binding): Only set CHECK_COPY_CONSTRUCTOR if not for
CONSTRUCTOR_CALLABLE.
(convert_like_real, initialize_reference): Use
check_constructor_callable.
* cp-tree.h (LOOKUP_CONSTRUCTOR_CALLABLE): New.
(LOOKUP_*): Renumber.
testsuite:
* PR C++/16174
* g++.dg/template/ctor4.C: New.

From-SVN: r83775
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/ctor4.C [new file with mode: 0644]