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/69037] [5 Regression] arrays of constants as function arguments misinterpreted


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69037

--- Comment #5 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Author: jsm28
Date: Thu Dec 31 00:24:59 2015
New Revision: 232014

URL: https://gcc.gnu.org/viewcvs?rev=232014&root=gcc&view=rev
Log:
Backport PR c/68668 patch to fix PR c/69037.

gcc/c:
        PR c/69037
        Backport from mainline:

        2015-12-07  Marek Polacek  <polacek@redhat.com>

        PR c/68668
        * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
        TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.

gcc/testsuite:
        PR c/69037
        Backport from mainline:

        2015-12-07  Marek Polacek  <polacek@redhat.com>

        PR c/68668
        * gcc.dg/pr68668.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr68668.c
Modified:
    branches/gcc-5-branch/gcc/c/ChangeLog
    branches/gcc-5-branch/gcc/c/c-decl.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog

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