https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91999
--- Comment #2 from Nicholas Guriev <guriev-ns at ya dot ru> --- Thank you for the clarification. The diagnostic message looks like no pch is used at all that results in a misunderstanding. At an end-user point of view, the -Winvalid-pch flag isn't so valuable. Who cares in which way a correct pch has been discovered and how many invalid files were found before?