[PATCH] D36853: [Parser] Correct initalizer typos before lambda capture type is deduced.

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 18 08:54:06 PDT 2017

arphaman added a comment.

There's also a crash with the `( ... )` initializer:

  namespace init_capture_undeclared_identifier {
    auto a = [x = y]{};
    int typo_foo;
    auto b = [x (typo_boo )]{}; 

I think you should move the added correction code before `if (Init.isUsable())` to ensure that all paths are covered.


More information about the cfe-commits mailing list