------- Comment #6 from reichelt at gcc dot gnu dot org  2006-04-19 17:19 
-------
Subject: Bug 10385

Author: reichelt
Date: Wed Apr 19 17:19:35 2006
New Revision: 113085

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113085
Log:
        PR c++/10385
        * rtti.c (build_dynamic_cast_1): Check for invalid conversions
        before calling convert_to_reference.
        * cvt.c (convert_to_reference): Assert that reftype is a
        REFERENCE_TYPE.

        * g++.dg/conversion/dynamic1.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/conversion/dynamic1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/cvt.c
    branches/gcc-4_1-branch/gcc/cp/rtti.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10385

Reply via email to