http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47394
Summary: Internal compiler error when error count limit is reached Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: thenl...@users.sourceforge.net When compiling a program with -fmax-errors=n and the n-th error is encountered, an internal compiler error occurs and the gfortran command exits with status 4. Expected result is: the compiler should report the abortion and exit with the status code according to the error encountered, like the C compiler does. Example: $ echo x > test.f $ gfortran -fmax-errors=1 test.f test.f:1.1: x 1 Error: Non-numeric character in statement label at (1) Fatal Error: Error count reached limit of 1. gfortran.exe: internal compiler error: Aborted (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. $ echo $? 4