Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12521

lambda that returns primitive type fails on parsing

    XMLWordPrintable

Details

    • 06e2c3309efffe3a1866134f6b1db65ffd907370

    Description

      Doesn't happen for the first lambda, and doesn't happen if the return type is a class.

      void foo()
      {
          func([]() -> int { return 42; }); // correct
          func([]() -> int { return 42; }); // duplicate data type in declaration
          func([]() -> int { return 42; }); // duplicate data type in declaration
      }

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-12521
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes