On 30 November 2016 at 08:04, Eugene Seliverstov wrote:
> Just a note that initial ubsan error cannot be reproduced for 0.8.0 and 0.8.1
> with the latest sid compiler (6.2), jessie compiler (4.8) and clang (3.8).
> Seems like the bug #65049 exists only for gcc 5.3 and 6.0.
No, as it says there, the bug is *fixed* for 5.3 and 6.0 (which became 6.1).
The char_traits bug is present in gcc 5.2 and earlier. So the bug is
present in 4.8, but the gcc optimizers probably don't cause anything
bad to happen, or its ubsan isn't smart enough to notice it.