https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107623
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- On the trunk (with --enable-checking=yes) we get an ICE: <source>: In function 'int main()': <source>:10:11: internal compiler error: in comptypes, at cp/typeck.cc:1684 10 | test(f, 1); | ~~~~^~~~~~ 0x23961de internal_error(char const*, ...) ???:0 0xaaa542 fancy_abort(char const*, int, char const*) ???:0 0xce0f15 more_specialized_fn(tree_node*, tree_node*, int) ???:0 0xad8609 build_new_function_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) ???:0 0xd01048 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) ???:0 0xc88297 c_parse_file() ???:0 0xdd1699 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See https://gcc.gnu.org/bugs/ for instructions. ASM generation compiler returned: 1