http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49766
Summary: Fortran w/ CPP: Add tracking locations of tokens resulting from macro expansion Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org The problem a patch should solve is described at http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00858.html Namely: Providing a better diagnostic output if an error occurs with code which is based on a macro expansion. Latest patch series (for C/C++): http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01316.html What needs to be done for gfortran is briefly described at cf. http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01330.html The C/C++ patch which adds the diagnostic for comparison http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01317.html