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++/36688] [4.3/4.4 Regression] Incorrect struct assignments with nested const initializers



------- Comment #4 from jakub at gcc dot gnu dot org  2008-08-12 08:32 -------
Subject: Bug 36688

Author: jakub
Date: Tue Aug 12 08:31:15 2008
New Revision: 139006

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139006
Log:
        PR c++/36688
        * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
        on the VAR_DECL instead of TYPE_READONLY on its type.

        * g++.dg/init/const6.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/init/const6.C
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/gimplify.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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