https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91011
--- Comment #6 from Adam Badura <adam.f.badura at gmail dot com> --- (In reply to Jonathan Wakely from comment #5) > IMHO -x c++ should be sufficient to cause cc1plus to be used. I fully agree! However, it would mean the parameter would have to change its meaning (be extended) since now (based on documentation) it only affects the interpretation of subsequent files. While there are no files in this command. However, having it work this way would provide a nice interface for any language. Although will it work with languages not supported by given installation? Since querying warning flags seems to be working for any language, regardless of which are enabled.