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 ipa/64641] ICE in get_polymorphic_call_info with C-cast to (polymorphic) object-reference


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64641

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Works for me on x86_64-linux.  But the assert you hit looks dubious (and
unnecessary)...

tree
get_polymorphic_call_info (tree fndecl,
                           tree ref,
                           tree *otr_type,
                           HOST_WIDE_INT *otr_token,
                           ipa_polymorphic_call_context *context)
{
...
              /* We found base object.  In this case the outer_type
                 is known.  */
              else if (DECL_P (base))
                {
                  gcc_assert (!POINTER_TYPE_P (TREE_TYPE (base)));


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