[Bug middle-end/89998] [7/8/9 regression] ICE: verify_gimple failed in printf-return-value
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 8 17:00:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89998
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
CC| |msebor at gcc dot gnu.org
Blocks| |85741
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
This is another instance of the mismatched built-in signature problem. With
-Wextra GCC 9 prints:
warning: mismatch in return type of built-in function ‘sprintf’; expected
‘int’ [-Wbuiltin-declaration-mismatch]
1 | unsigned int sprintf (char *str, const char *fmt, ...);
As we discussed, having the warning for the declaration disable treating the
function as a built-in will avoid these bugs.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85741
[Bug 85741] [meta-bug] bogus/missing -Wformat-overflow
More information about the Gcc-bugs
mailing list