This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29273] error on dynamic_cast<T>(array)


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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-01-03 15:29:47 UTC ---
Author: paolo
Date: Tue Jan  3 15:29:42 2012
New Revision: 182851

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182851
Log:
/cp
2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/29273
    * rtti.c (build_dynamic_cast_1): In case of T a pointer type,
    call decay_conversion on v.

/testsuite
2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/29273
    * g++.dg/rtti/dyncast5.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/rtti/dyncast5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/rtti.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]