[PATCH] D119136: [clang] Implement Change scope of lambda trailing-return-type

Noel Grandin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 16 09:44:05 PDT 2022


grandinj added a comment.

I note that building on Ubuntu, I am now seeing failures like:

env/gbuildtojson/gbuildtojson.cxx:10:
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/algorithm:74:
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/pstl/glue_algorithm_defs.h:13:
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/functional:61:
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/unordered_map:52:
In file included from /usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/unordered_map:49:
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

  [__local_end](__decltype(__local_end) __it)
                           ^

/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/safe_unordered_container.h:71:4: note: variable '__local_end' is explicitly captured here

  [__local_end](__decltype(__local_end) __it)
   ^

/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/safe_unordered_container.h:69:2: note: '__local_end' declared here

  auto __local_end = _M_cont()._M_base().cend(0);
  ^

/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/safe_unordered_container.h:79:44: error: captured variable '__end' cannot appear here

  this->_M_invalidate_if([__end](__decltype(__end) __it)
                                            ^

/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/safe_unordered_container.h:79:26: note: variable '__end' is explicitly captured here

  this->_M_invalidate_if([__end](__decltype(__end) __it)
                          ^

/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/debug/safe_unordered_container.h:78:2: note: '__end' declared here

  auto __end = _M_cont()._M_base().cend();
  ^


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119136



More information about the cfe-commits mailing list