[Bug sanitizer/64344] [5 Regression] [UBSAN] ICE with -fsanitize=float-cast-overflow [ICE in -fsanitize=float-cast-overflow]

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 18 09:31:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64344

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34297
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34297&action=edit
gcc5-pr64344.patch

Untested fix, but this is getting way too ugly.  Furthermore, e.g.
void
bar (void)
{
  static const int a = 0.5;
  static const int b = 1e234;
}
still fails with C.  Wonder what was the reason to instrument it so early,
supposedly to not miss conversions optimized away during folding, right?



More information about the Gcc-bugs mailing list