https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78304
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Even though that with my patch we expansion_point_location_if_in_system_header the caret location, it still points to the location in the system header, so the diagnostics is suppressed.