We probably need: -fcheck-* with all bounds pointers recursive
The recursive test is simple. C example: bla(...) { static recursive = 0; if(recursive) exit_with_error recursive = 1 ... recursive = 0; // Last statement } -- Summary: Run-time check for recursive functions Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32626