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 middle-end/42874] [4.5 Regression] Error on correct code: sorry, unimplemented: function ‘foo’ can never be copied because it uses



------- Comment #7 from jakub at gcc dot gnu dot org  2010-01-27 15:10 -------
Subject: Bug 42874

Author: jakub
Date: Wed Jan 27 15:09:23 2010
New Revision: 156287

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156287
Log:
        PR middle-end/42874
        * tree-inline.c (cannot_copy_type_1): Removed.
        (copy_forbidden): Don't forbid copying of functions containing
        records/unions with variable length fields.

        * gcc.dg/vla-22.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/vla-22.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


-- 


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


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