Do you see "Fatal Error: Error count reached limit of ..." in your logs? If yes, what is the value.
Compiling the code with -fmax-errors=51, I get Fatal Error: Error count reached limit of 51. This fatal error disappears with -fmax-errors=52, well below the limit in the test: -fmax-errors=100. Dominique