Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8586

No diagnostic for lambda expression with default arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-4233
    • Hide
      ARM_18.1.0.LTS
       MSP430_18.1.0.LTS
      Show
      ARM_18.1.0.LTS  MSP430_18.1.0.LTS
    • Hide
      The following code is expected to emit a diagnostic due to a default argument in a lambda expression parameter list.

       auto f = [] (int=1, long, int) -> void {};
      Show
      The following code is expected to emit a diagnostic due to a default argument in a lambda expression parameter list.  auto f = [] (int=1, long, int) -> void {};
    • This is a diagnostic only in C++11. C++14 allows such syntax, with the obvious semantics.

      No diagnostic for lambda expression with default arguments

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: