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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          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