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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |8.3.0
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2019-05-15
                 CC|                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|Can't apply attributes to   |[9/10 Regression] Can't
                   |lambdas with trailing       |apply attributes to lambdas
                   |returns                     |with trailing returns
   Target Milestone|---                         |9.2
      Known to fail|                            |10.0, 9.1.0

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Started to be rejected with r265787:

            PR c++/60503 - wrong lambda attribute syntax.

    This patch fixes two issues with lambda attribute handling: First, it was
in
    the wrong place in the grammar.  Second, it was treating attributes as
    applying to the whole declaration rather than to the function type, as
    specified by the standard.

            * parser.c (cp_parser_lambda_declarator_opt): Fix attribute
            handling.

Reply via email to