http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55534
--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> 2012-12-13 21:11:20 UTC --- Adding some prints, I found that the crash is probably due to the actual order of invocation of some functions: gfc_post_options, which calls gfc_cpp_post_options; then gfc_cpp_register_include_paths, leading to the crash. At this time, gfc_init was not yet called. With -Wno-missing-include-dirs, the execution proceeds thru gfc_init and then gfc_cpp_init_0, where the callbacks finally are initialized.