re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))
authorJason Merrill <jason@redhat.com>
Thu, 9 Oct 2003 08:38:46 +0000 (04:38 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 9 Oct 2003 08:38:46 +0000 (04:38 -0400)
commit4b011bbf6bbe244569bf18209dc7bce6a98dd224
treed0f777b45d19a136899a383c83866e289a331465
parente913996db1ff90fd5ae6fc7940c1f8a6fe9d10ea
re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))

        PR c++/6392
        * cp/tree.c (build_cplus_array_type): Handle all quals the same.
        (cp_build_qualified_type_real): Look through arrays first.
        * c-common.c (c_build_qualified_type): Look through arrays first.
        (c_apply_type_quals_to_decl): Look through arrays.

        * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
        types with constructors.

From-SVN: r72259
gcc/ChangeLog
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/tree.c