OSDN Git Service

Fix PR c++/42260 and ensure PR c++/45383 is fixed
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Nov 2010 16:31:40 +0000 (16:31 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Nov 2010 16:31:40 +0000 (16:31 +0000)
commit8e8ac75a13190747d6c7ce8f0fb4efe5f52cd40e
tree6e341f54dc5000bed430e6611dada4fd581bcbdb
parent9960d752f0bd2b1e3f0c62d50deae42a1303c8ce
Fix PR c++/42260 and ensure PR c++/45383 is fixed

gcc/cp/
c++/42260
* call.c (add_builtin_candidate): At this point the resulting type
of an indirection operator should be complete.

gcc/testsuite/
c++/42260
c++/45383
* g++.dg/conversion/cast2.C: New test.
* g++.dg/conversion/cond4/C: Likewise. Ensures we don't regress on
PR c++/45383

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167250 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/cast2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/conversion/cond4.C [new file with mode: 0644]