3 ms·
Clang with default settings seems to get it right: https://imgur.com/a/d3LBlLK https://imgur.com/a/d3LBlLK
by torstenvl 6y ago
Clang with default settings seems to get it right:
https://imgur.com/a/d3LBlLK https://imgur.com/a/d3LBlLK
- zucker42 6y agoDoes it work with GCC on your computer? This might be 32-bit specific.
- bonzini 6y agoIt may gets it right for this particular test case, but it will get others wrong. It's impossible to say "it gets it right" from a single testcase or three, you have to look at the compiler innards. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=323 for the gory details; clang works the same as GCC's C++ frontend and the same that GCC <4.5 used to behave for C.