[Bug c++/66615] New: Ambiguous conversion operators, explicit unambiguous conversion operator and copy initialization

2015-06-21 Thread fynjycfdby at gmail dot com
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

2015-07-02 Thread fynjycfdby at gmail dot com
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 '