https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- I think some kind of delayed warning could help (so parse expressions and print possible warnings to some "printer" and then print warnings from this "printer" only for the association that matched). Because of "default:" selectors we can't parse just the one that matches.