Details
Description
- Open project tests\manual\debugger\simple\simple.pro from Creator's repository and configure it to use a MinGW-based kit.
- Set a breakpoint in function void testRValueReference() and let the debugger run there:
struct X { X() : a(2), b(3) {} int a, b; }; X testRValueReferenceHelper1() { return X(); } X testRValueReferenceHelper2(X &&x) { return x; } void testRValueReference() { X &&x1 = testRValueReferenceHelper1(); X &&x2 = testRValueReferenceHelper2(std::move(x1)); X &&x3 = testRValueReferenceHelper2(testRValueReferenceHelper1()); X y1 = testRValueReferenceHelper1(); X y2 = testRValueReferenceHelper2(std::move(y1)); X y3 = testRValueReferenceHelper2(testRValueReferenceHelper1()); BREAK_HERE; // Continue. dummyStatement(&x1, &x2, &x3, &y1, &y2, &y3); }
- See the values for x1, x2 and x3 in Locals and Expressions view.
They are all displayed as "not accessible".
As far as I understand C++11 these are valid references and the value they are referencing should be displayed.