[Bug c++/70385] New: Lambda capture by reference of const reference fails
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nikb at bougalis dot net Target Milestone: --- Consider the following minimal MCVE: const int& test() { int const static i = 0; return i; } int main() { auto square =
[Bug libstdc++/68190] iterator mix up with set::find and heterogenous lookup
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68190 --- Comment #6 from Nik Bougalis --- I don't follow why an auto return is used, instead of simply iterator/const_iterator which is the required return value per the documentation I've read.