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++/35144] [4.3 regression] ICE in generate_element_copy



------- Comment #5 from jakub at gcc dot gnu dot org  2008-02-12 18:35 -------
Subject: Bug 35144

Author: jakub
Date: Tue Feb 12 18:35:05 2008
New Revision: 132264

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132264
Log:
        PR c++/35144
        * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
        non-compatible pointers.
        (generate_element_copy): If SRC and DST are RECORD_TYPEs with
        different FIELD_DECLs, try harder by comparing field offsets, sizes
        and types.

        * g++.dg/tree-ssa/pr35144.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr35144.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c


-- 


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


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