c-typeck.c (composite_type, [...]): Abort if we have type qualifiers at all.
authorAndrew Pinski <apinski@apple.com>
Wed, 23 Jun 2004 20:53:17 +0000 (20:53 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 23 Jun 2004 20:53:17 +0000 (13:53 -0700)
commitde46b2fe0dc554f71b61f0bcc8d6afdde2292a6c
tree046d79935a5305e2ca08168568b559af903e3f1a
parent07f266aecd773341be6f62935bcf8a6e935d5528
c-typeck.c (composite_type, [...]): Abort if we have type qualifiers at all.

2004-06-23  Andrew Pinski  <apinski@apple.com>

        * c-typeck.c (composite_type, <case ARRAY_TYPE>): Abort if we have
        type qualifiers at all.
        If both of the type domains are null and the new element type is
        the same as one of the, return the one which the element type.
        matches.
        Do not call qualify_type on the new type.

2004-06-23  Andrew Pinski  <apinski@apple.com>

        * gcc.dg/c90-array-quals-2.c: New test.

From-SVN: r83567
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-array-quals-2.c [new file with mode: 0644]