[PATCH] D36357: Added a better diagnostic when using the delete operator with lambdas

Nicolas Lesser via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 5 03:16:02 PDT 2019


Rakete1111 added a comment.

@rsmith One last question: The fixit diagnostic seems to be inconsistent with the rest?

  main.cpp:2:3: error: '[]' after delete interpreted as 'delete[]'
    delete[] { return new int; }
    ^~~~~~~~
          (                     )

Shouldn't the `^~~~~~~` be starting at the `[]`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D36357/new/

https://reviews.llvm.org/D36357





More information about the cfe-commits mailing list