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

--- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Aug 15 18:31:16 2019
New Revision: 274544

URL: https://gcc.gnu.org/viewcvs?rev=274544&root=gcc&view=rev
Log:
        PR c++/81429 - wrong parsing of constructor with C++11 attribute.
        * parser.c (cp_parser_constructor_declarator_p): Handle the scenario
        when a parameter declaration begins with [[attribute]].

        * g++.dg/cpp0x/gen-attrs-68.C: New test.
        * g++.dg/cpp0x/gen-attrs-69.C: New test.

Added:
    branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/gen-attrs-68.C
    branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/gen-attrs-69.C
Modified:
    branches/gcc-9-branch/gcc/cp/ChangeLog
    branches/gcc-9-branch/gcc/cp/parser.c

Reply via email to