https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93537
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2020-02-01 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With --enable-checking=yes we get a different failure: In function ‘FOO’: tree check: expected tree that contains ‘decl common’ structure, have ‘integer_cst’ in pp_c_enumeration_constant, at c-family/c-pretty-print.c:999 131 | cbNativeCatalogName = BAR( TSCGetPublicTMILCath(stmth->conh), | ^~~~~~~~~~~~~~~~~~~ 0x6fcc7b tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../../gits/gcc/gcc/tree.c:9859 0x5e5cb8 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../../gits/gcc/gcc/tree.h:3392 0x5e5cb8 pp_c_enumeration_constant ../../gits/gcc/gcc/c-family/c-pretty-print.c:999 We are ICEing while trying to do a pedwarn of: 7274 if (pedwarn (&richloc, OPT_Wincompatible_pointer_types, 7275 "passing argument %d of %qE from incompatible " 7276 "pointer type", parmnum, rname)) 7277 inform_for_arg (fundecl, expr_loc, parmnum, type, rhstype);