http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53934
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- How is Fortran using CPP? Does it preprocess the whole file externally and then passes it to the Fortran FE? If so, this is not going to work since the locations generated by macro expansion are only generated when preprocessing. If Fortran reads the already preprocessed file, then there are not macros at all. Fortran would need to do the preprocessing in-process like the C/C++ FEs to even start thinking about implementing this. Once that is done and PR44054 is fixed, then this should be trivial.