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++/60503] New: gcc looks for C++ attributes in the wrong place in a lambda-expression


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60503

            Bug ID: 60503
           Summary: gcc looks for C++ attributes in the wrong place in a
                    lambda-expression
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk

GCC accepts this ill-formed code:

  void f() { []() [[ ]] mutable noexcept {}; }

... and rejects this valid code:

  void f() { []() mutable noexcept [[ ]] {}; }


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