https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936
--- Comment #17 from __vic <d.v.a at ngs dot ru> --- Created attachment 38319 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38319&action=edit Dirty patch for GCC 5/6 This dirty patch created for GCC5 solves the problem for GCC6 as well. (out_of_range will not contain pretty message)