Details
-
Bug
-
Resolution: Incomplete
-
P4: Low
-
None
-
Qt Creator 6.0.2
Description
The initialization of 'leftShift' forces incorrect indentation on subsequent lines, when initializing
with a left-shift expression. Interestingly, right-shift doesn't cause this bug.
Everything from 'leftShifted.set(0, top);' onwards is incorrectly indented.
std::bitset<4> rot(std::bitset<4> hbyte) { bool top {hbyte.test(3)}; std::bitset<4> leftShifted {hbyte << 1}; leftShifted.set(0, top); return leftShifted; } int main() { std::cout << rot(0b0001) << '\n'; std::cout << rot(0b1001) << '\n'; return 0; }