[Bug c++/92438] [8 Regression] Function declaration parsed incorrectly with `-std=c++1z`

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 14 16:37:00 GMT 2020


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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:becbae00641077f7104d16b4565c1d64df5fafc6

commit r8-10000-gbecbae00641077f7104d16b4565c1d64df5fafc6
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Feb 14 15:32:20 2020 +0100

    re PR c++/92438 (Function declaration parsed incorrectly with `-std=c++1z`)

        PR c++/92438
        * parser.c (cp_parser_constructor_declarator_p): If open paren
        is followed by RID_ATTRIBUTE, skip over the attribute tokens and
        try to parse type specifier.

        * g++.dg/ext/attrib61.C: New test.


More information about the Gcc-bugs mailing list