[Bug c++/66615] New: Ambiguous conversion operators, explicit unambiguous conversion operator and copy initialization
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fynjycfdby at gmail dot com Target Milestone: --- The following code is wrongly accepted, the output is an arbitrary number: - #include struct A
[Bug c++/66735] New: [C++14] lambda init-capture fails for const references
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fynjycfdby at gmail dot com Target Milestone: --- This code fails to compile: int main() { int x = 0; auto l = [&rx = static_cast(x)]() {}; } The error message is: test.cpp:3:14: error: binding '