diff options
author | Simon Martin <simartin@users.sourceforge.net> | 2007-10-12 18:43:33 +0000 |
---|---|---|
committer | Simon Martin <simartin@gcc.gnu.org> | 2007-10-12 18:43:33 +0000 |
commit | a9a81e7d6a50fc249f22af07504e9620f93d6037 (patch) | |
tree | eabcc4bcf303645f96501855cd21ddaeac0d8c68 /gcc/config.gcc | |
parent | 8d9597e148163a10bad52f7206a223bb236a20d7 (diff) | |
download | gcc-a9a81e7d6a50fc249f22af07504e9620f93d6037.zip gcc-a9a81e7d6a50fc249f22af07504e9620f93d6037.tar.gz gcc-a9a81e7d6a50fc249f22af07504e9620f93d6037.tar.bz2 |
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
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions