https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112725
Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |bergner at gcc dot gnu.org, | |g...@the-meissners.org, | |linkw at gcc dot gnu.org, | |segher at gcc dot gnu.org Last reconfirmed| |2023-11-29 Ever confirmed|0 |1 --- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> --- Confirmed, thanks for reporting. It looks we need to special-case __builtin_classify_type in the hook invalid_arg_for_unprototyped_fn, the __builtin_classify_type invocation will conclude to be a integer in the end, so no actual call.