[Bug c/35235] [4.2/4.3/4.4 Regression] struct/union rvalue qualifiers must not propagate to members
jsm28 at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Feb 4 21:03:00 GMT 2009
------- Comment #3 from jsm28 at gcc dot gnu dot org 2009-02-04 21:02 -------
Subject: Bug 35235
Author: jsm28
Date: Wed Feb 4 21:02:42 2009
New Revision: 143940
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143940
Log:
PR c/35235
* c-typeck.c (build_component_ref): Do not copy qualifiers from
non-lvalue to component.
testsuite:
* gcc.dg/c99-array-lval-8.c: New test.
Added:
branches/c-4_5-branch/gcc/testsuite/gcc.dg/c99-array-lval-8.c
Modified:
branches/c-4_5-branch/gcc/ChangeLog.c45
branches/c-4_5-branch/gcc/c-typeck.c
branches/c-4_5-branch/gcc/testsuite/ChangeLog.c45
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35235
More information about the Gcc-bugs
mailing list