OSDN Git Service

gcc/cp/
authorsimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Oct 2007 18:43:33 +0000 (18:43 +0000)
committersimartin <simartin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Oct 2007 18:43:33 +0000 (18:43 +0000)
commit649873d293ba29ed719f10aad428371fd07502dc
treeeabcc4bcf303645f96501855cd21ddaeac0d8c68
parent2bc1b5c109ee663a9d7c14a0986c0b327987a454
gcc/cp/

2007-10-12  Simon Martin  <simartin@users.sourceforge.net>

PR c++/26698
* call.c (build_user_type_conversion_1): Do not consider conversion
functions to convert a (possibly cv-qualified) object to the (possibly
cv-qualified) same object type (or a reference to it), to a (possibly
cv-qualified) base class of that type (or a reference to it).

gcc/testsuite/

2007-10-12  Simon Martin  <simartin@users.sourceforge.net>

PR c++/26698
* g++.dg/conversion/op4.C: New test.

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