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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  7 14:58:21 2019
New Revision: 268650

URL: https://gcc.gnu.org/viewcvs?rev=268650&root=gcc&view=rev
Log:
        Backported from mainline
        2019-02-06  Jakub Jelinek  <ja...@redhat.com>

        PR c/89211
        * c-parser.c (c_parser_declaration_or_fndef): Don't update
        DECL_ARGUMENTS of d if it has been defined already.  Use a single if
        instead of 3 nested ifs.

        * gcc.dg/pr89211.c: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr89211.c
Modified:
    branches/gcc-8-branch/gcc/c/ChangeLog
    branches/gcc-8-branch/gcc/c/c-parser.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to