re PR c/35235 (struct/union rvalue qualifiers must not propagate to members)
authorJoseph Myers <joseph@codesourcery.com>
Mon, 30 Mar 2009 01:25:37 +0000 (02:25 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 30 Mar 2009 01:25:37 +0000 (02:25 +0100)
commit1e57bf475bf7651b30a5a3199bc669617c5004a6
treea3701e6d5c0e690302dbeb1ef83b5841596f4999
parent25d4deb101277208e94bac3af595d004801027de
re PR c/35235 (struct/union rvalue qualifiers must not propagate to members)

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.

From-SVN: r145271
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c99-array-lval-8.c [new file with mode: 0644]