Open Quuxplusone opened 3 years ago
Attached test.cc
(1493 bytes, text/x-c++src): example program
Somewhat reduced: https://godbolt.org/z/veEzx9
Wow. So, we're emitting code for 'continue;' that branches through the cleanup for the condition variable to the increment expression. But the increment expression also branches through that cleanup to the start of the loop. So we run the destructor twice.
test.cc
(1493 bytes, text/x-c++src)