https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91167
Bug ID: 91167 Summary: -pedantic-errors does not turn -pedantic warnings into errors Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mark.eggleston at codethink dot com Target Milestone: --- This short program illustrates the problem: program test real*8 :: x = 9.0 write(*,*) x end program test when compiled with -pedantic: 2 | real*8 :: x = 9.0 | 1 Warning: GNU Extension: Nonstandard type declaration REAL*8 at (1) Using -pedantic-errors results in the same warning instead of the expected error. This also occurs with 7.4, 8.3 and trunk.