[Bug c++/60943] [C++14] Return type deduction interferes with ref-qualifiers

2015-05-21 Thread anders at sjogren dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60943 --- Comment #6 from Anders Sjögren --- An alternative test case, which also tests that the correct version is selected, could be: #include using expected_lvalue_res_t = int; using expected_rvalue_res_t = double; struct A { auto f() & {retur

[Bug c++/60943] [C++14] Return type deduction interferes with ref-qualifiers

2015-05-21 Thread anders at sjogren dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60943 --- Comment #5 from Anders Sjögren --- A typo snuck in... "However, as an l-value at the site of the call[...]" should be "However, a is an l-value at the site of the call[...]"

[Bug c++/60943] [C++14] Return type deduction interferes with ref-qualifiers

2015-05-21 Thread anders at sjogren dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60943 --- Comment #4 from Anders Sjögren --- Thanks for fixing the bug! It seems that the test file https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/g%2B%2B.dg/cpp1y/pr60943.C?view=markup&pathrev=223502 contains an error. It contains: void Bar (A

[Bug c++/65599] New: [c++14] Failing overload resolution when combining return type deduction and explicit R/L-value methods

2015-03-27 Thread anders at sjogren dot info
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anders at sjogren dot info The following code uses return type deduction (auto) and different methods for L-value and R-value objects. It seems when