https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94040
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|10.0, 9.2.0 |9.3.0 Summary|[9/10 Regression] ICE on a |[9 Regression] ICE on a |call to an invalid |call to an invalid |redeclaration of strftime |redeclaration of strftime Known to work| |10.0 --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- Fixed for GCC 10 via r10-7162: https://gcc.gnu.org/g:f2e9fe5f97d88fc876c44e6ffa57a2e85150adf9 commit r10-7162-gf2e9fe5f97d88fc876c44e6ffa57a2e85150adf9 Author: Martin Sebor <mse...@redhat.com> Date: Fri Mar 13 10:28:26 2020 -0600 PR c/94040 - ICE on a call to an invalid redeclaration of strftime gcc/c/ChangeLog: PR c/94040 * c-decl.c (builtin_structptr_type_count): New constant. (match_builtin_function_types): Reject decls that are incompatible in types pointed to by pointers. (diagnose_mismatched_decls): Adjust comments. gcc/testsuite/ChangeLog: PR c/94040 * gcc.dg/Wbuiltin-declaration-mismatch-12.c: Relax test to look for warning name rather than the exact text. * gcc.dg/Wbuiltin-declaration-mismatch-14.c: New test. * gcc.dg/Wbuiltin-declaration-mismatch-15.c: New test. * gcc.dg/pr62090.c: Prune expected warning. * gcc.dg/pr89314.c: Look for warning name rather than text.