On Fri, 28 Nov 2014, Kai Tietz wrote: > Hi, > > this patch turns off ms-extensions for mingw-targets to match > diagnostics checked in testcases. > > Ok for apply?
For the tests using -std=<some ISO standard> -pedantic (or -pedantic-errors), are you saying the diagnostics are *different*, or that some constructs (that are invalid in the relevant ISO standard) are *not diagnosed at all*? If the latter, it's a bug in the MinGW port - when a conformance mode is selected, the constructs invalid in that mode must be diagnosed appropriately, independent of the target. You could for example disable ms-extensions if flag_iso, although it might be better to distinguish explicit and implicit ms-extensions and have the (pedantic, only OK because of implicit ms-extensions) case give a pedwarn and then continue with what it would have done with the extension enabled. -- Joseph S. Myers jos...@codesourcery.com