re PR c++/26698 (g++ accepts const-incorrect code due to conversion function)
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. From-SVN: r129274
Showing
gcc/testsuite/g++.dg/conversion/op4.C
0 → 100644
Please
register
or
sign in
to comment