https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106256
Nathaniel Shead <nshead at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nshead at gcc dot gnu.org --- Comment #3 from Nathaniel Shead <nshead at gcc dot gnu.org> --- In case it's at all helpful, I'd posted a WIP patch of one possible approach for this a short while back (but I'd only mentioned it in PR117294, I didn't find this bug report at the time): https://gcc.gnu.org/pipermail/gcc-patches/2024-November/667976.html Haven't done any further work on it though, and it's definitely not perfect; in particular, it wouldn't be able to improve diagnostics of type traits that aren't defined in terms of compiler builtins.