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
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[...]"
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
: 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